Different results from Codeforces and another IDE

Revision en1, by a7t, 2018-06-24 21:59:29

Hi there! Just finished another great contest, hope you enjoyed it too!

Nevertheless, I run into this strange problem, my submission on Codeforces says that output is '3', but on another IDE (codechef, cpp.sh or ideone.com) it says '2', which is the correct answer. I also have tried different versions of compiler, however result is the same. Do you know why this happened?

Link to my code on ideone.com — https://ideone.com/KZ76Aq

My submission — 39627475

Tags c++ error, c++ compilers, contest, outup

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English a7t 2018-06-24 21:59:29 542 Initial revision (published)