spectaclehong's blog

By spectaclehong, history, 6 years ago, In English

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.net/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?

Full text and comments »

  • Vote: I like it
  • +58
  • Vote: I do not like it

By spectaclehong, history, 7 years ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it