Comments
On utkarshlZenhacks programming contest, 11 years ago
+1

Thanks. I have updated to state the same.

On utkarshlZenhacks programming contest, 11 years ago
0

Auto comment: topic has been updated by utkarshl (previous revision, new revision, compare).

The size of array is 102. m<=1000, so its size must be at least 1000.
The idea is correct, but implementation is wrong. The value of x can go upto C(99999,99) which is about 500 digits long and double does not have such high precision.

About the problem Basketball Team, the solution was probably not very accurate. When i used __float128 or long double to calculate my results, i got WA on some pretests, but when i converted it to double, my solution was accepted. May be you should have considered decreasing the required accuracy if double could not give the required precision.