AmirMohammadKarimi's blog

By AmirMohammadKarimi, history, 4 weeks ago, In English,

Hi community!

I was solving Problem A Round 567 Div.2 I solved it by python 3 and submitted it, But I got wrong answer because input was three numbers: 999999999999999997 999999999999999998 5

and the correct answer was:

400000000000000000 0

but my script output was:

399999999999999999 2.

But I tested the script with Codeforces test case and got: 400000000000000000 0

Why my script answered differently on codeforces servers and my computer?

My script and tests

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

4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

What Python version are you using locally ?