10969 - Sweet Dream
Posted: Sun Sep 14, 2008 5:23 pm
I think it is very unfair to rejudge this type of problem.
Now you can see only Neal Zean can get the output completely correct.
It is very hard to get the exactly output for all the test cases. (I tried both of double and long double)
Because the data are floating-point numbers, we can just avoid the precision error during the calculation.
in the problem statement, it advised us to use 1e-10 to check the equality of two floating-point numbers.
But in the output, it must lead some precision error in the summation for the answer.
In my opinion, special judge should be used here.for example, some cases may generate the result like this:
xxx.xxx5000000... OR xxx.xxx4999999...
P.S. About 10749 - 10758, have you found the special judge program for them?
Now you can see only Neal Zean can get the output completely correct.
It is very hard to get the exactly output for all the test cases. (I tried both of double and long double)
Because the data are floating-point numbers, we can just avoid the precision error during the calculation.
in the problem statement, it advised us to use 1e-10 to check the equality of two floating-point numbers.
But in the output, it must lead some precision error in the summation for the answer.
In my opinion, special judge should be used here.for example, some cases may generate the result like this:
xxx.xxx5000000... OR xxx.xxx4999999...
P.S. About 10749 - 10758, have you found the special judge program for them?