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

Правка en1, от 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

Теги #python, #python 3, #test, system test cases

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский AmirMohammadKarimi 2019-06-18 17:31:57 684 Initial revision (published)