Different Output(WA and AC) for same code on different compilers.

Revision en1, by REtoAC2001, 2021-11-26 09:24:39

In yesterday's div-3 (Round #756) I got WA on test 2 in problem C when I submitted it in GNU C++ 14 and now the same code gives AC when I submitted it in GNU C++ 17 (64 bit). Can anyone explain why this is happening? Link to Submission: WA Code(C++ 14) : https://codeforces.net/contest/1611/submission/136859793. AC Code(C++ 17-64 bit) : https://codeforces.net/contest/1611/submission/136967042. Both the codes are exactly same .

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English REtoAC2001 2021-11-26 09:24:39 498 Initial revision (published)