Can someone explain why this is happening problem Codeforces Round 855 (Div. 3)

Revision en1, by Kneee, 2023-03-03 19:27:24

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Kneee 2023-03-03 19:30:42 0 (published)
en2 English Kneee 2023-03-03 19:30:10 7 (saved to drafts)
en1 English Kneee 2023-03-03 19:27:24 632 Initial revision (published)