Difference between running a python script on your computer and Codeforces.com

Revision en1, by AmirMohammadKarimi, 2019-06-18 17:31:57

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

Tags #python, #python 3, #test, system test cases

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AmirMohammadKarimi 2019-06-18 17:31:57 684 Initial revision (published)