Code getting AC when submitted in C++17 but gives WA when submitted in C++14

Revision en2, by jainpavbhaji, 2020-05-28 13:04:07

I recently solved the problem of Codeforces round 146.

This is the problem statement

C++17 submission: AC submission

C++14 submission: WA submission

Both the codes are exactly same but the verdict is different.

Can anyone explain why this happens?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English jainpavbhaji 2020-05-28 13:04:07 2 Tiny change: 'e but the cerdict is ' -> 'e but the verdict is '
en1 English jainpavbhaji 2020-05-28 13:03:23 505 Initial revision (published)