Difference in output on codeforces in C++

Revision en1, by malviyanshiv, 2019-02-11 00:11:21

In Codeforces Round #538 (Div. 2), I submitted the solution for problem C and got WA on test case 4 ( solution link ). I checked it offline and it gave correct output for test case 4. I also checked it on online compiler ideone, and it also gave the correct result. I tried submitting in different versions of C++ ( an illogical attempt and so )... failed. Please help me to find the cause of ambiguity ?

Tags c++, #538 div2

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English malviyanshiv 2019-02-11 00:11:21 622 Initial revision (published)