Gordon-Freeman's blog

By Gordon-Freeman, history, 12 days ago, In English

i was solving this problem from the last div4 1971E - Find the Car and here is my submisson: 260566589 — i'am getting WA in testcase 19 and i found out it's because i'am using (double) , why is that can someone explain?

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

»
12 days ago, # |
  Vote: I like it +18 Vote: I do not like it

Floating point imprecision. I bet that even if you used long double, you would've still suffered a WA.

you should round manually, floor, ceil..

»
12 days ago, # |
  Vote: I like it -30 Vote: I do not like it

rewrite your code in java that's why