Can someone explain why this is happening in Problem A Codeforces Round 855 (Div. 3)

Правка en3, от Kneee, 2023-03-03 19:30:42

Hi everyone,

Can anyone explain why this code gets Wrong Answer on Test Case 2, Although the same code just deletes the map (didn't use it), it gets Accepted

If you submitted the same code that got wrong with c++20, it will give AC but c++17 gives the wrong answer

Code with map c++17: 195842451 Wrong Answer on Test Case 2

Code with map c++20: 195842466 Accepted

Code without map c++17: 195842512 Accepted

 Thanks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Kneee 2023-03-03 19:30:42 0 (published)
en2 Английский Kneee 2023-03-03 19:30:10 7 (saved to drafts)
en1 Английский Kneee 2023-03-03 19:27:24 632 Initial revision (published)