I entered Educational Codeforces Round 48, and I got WA in problem E.
With the contest end, I checked command : wrong answer 154th numbers differ — expected: '0.0000000', found: '-0.0000000', error = '-0.0000000'
I tried change -0 to 0 with abs function, but it doesn't work.
My source code : http://codeforces.me/contest/1016/submission/41186743
Why this happens, and how can I fix it? Does it have a meaning that I do not know at -0.000?
I changed your output from %.20Lf to %.9Lf
and here it is 41195099
other things is same as yours but this one is:
wrong answer 154th numbers differ — expected: '1396319.5324675', found: '2385379.2012987', error = '0.7083333'
I guess %.20 is too much for checker and it get crash or somthing
and in fact problem said error doesn't exceed 1e-6 is correct so there is no need to use %.20...
Thank you! But I just tried it again with same code above:"%.20Lf", I can get same command in yours. I guess a temporary problem with the checker.