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

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jainpavbhaji 2020-05-28 13:04:07 2 Tiny change: 'e but the cerdict is ' -> 'e but the verdict is '
en1 Английский jainpavbhaji 2020-05-28 13:03:23 505 Initial revision (published)