Problem F
Safety in Numbers
There are
Let
The contestant with the lowest score is eliminated.
Given the points contestants got from judges, your job is to find out, for each contestant, the minimum percentage of audience votes he/she must receive in order for him/her to be guaranteed not to be eliminated, no matter how the rest of the audience’s votes are distributed.
If the lowest score is shared by multiple contestants, no contestants will be eliminated.
Input
The first line of the input gives the number of test cases,
Output
For each test case, output one line containing Case
#x: followed by
Answers within an absolute or relative error of
Limits
Sample Input 1 | Sample Output 1 |
---|---|
4 2 20 10 2 10 0 4 25 25 25 25 3 24 30 21 |
Case #1: 33.333333 66.666667 Case #2: 0.000000 100.000000 Case #3: 25.0 25.0 25.0 25.0 Case #4: 34.666667 26.666667 38.666667 |