Please read the new rule regarding the restriction on the use of AI tools. ×

Captain_price's blog

By Captain_price, history, 9 years ago, In English

In the test case of 8 of the given problem, somehow the total distance 257593781689876390 when divided by 1, yielded 257593781689876384. I am using Python 3. Please point out the problem and solution.

I spent more than half an hour during the contest trying to debug...

  • Vote: I like it
  • -3
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

try // instead of / (everywhere where division needed)

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

isn't round 329 the upcoming one ?