AmirMohammadKarimi's blog

By AmirMohammadKarimi, history, 5 years 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

Full text and comments »