There's a confusing factor in the 'Curious' badge. The "Positive question record".
(total questions - negative questions - closed - deleted)/total questions is the formula of the question record. (negative, closed and deleted 'stack' with each other. that means if a question is negative and closed, it counts as two minus.)
Luckily, you know a list of your questions. Make a program that calculates your question record.
You will be given an array of question datas. A question data is made of 2 datas.
- The votes (integer)
- The state (
b(closed and deleted) is the default, You may change the type and the characters for each states.)
0.5(2 total, 1 minus points)
-0.5(2 total, 3 minus points)
-2(1 total, 3 minus points)
-0.77778(The precision is 5 digits past decimal point, rounded half-up. fractions are acceptable) (Oh my, my question record is horrible.)
- ` ('Minus points' is the sum of negative, closed and deleted.)
- Format of input is your choice. You don't necessarily need to use the format in the Examples.