Блог пользователя Gordon-Freeman

Автор Gordon-Freeman, история, 5 недель назад, По-английски

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?

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
5 недель назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

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..

»
5 недель назад, # |
  Проголосовать: нравится -30 Проголосовать: не нравится

rewrite your code in java that's why