Different Answer on Different Compiler

Revision en2, by iaNTU, 2020-05-28 20:12:32

Story

I just participated as an unrated contestant in Educational Codeforces Round 88 (Rated for Div. 2). I was trying hard to solve problem C, yet keep getting WA on test 4. I didn't solve the problem during the contest, and when I was testing my solutions after the contest, something weird happened.

Check this out

Compiler : C++17 AC

Compiler : C++17 (64bit) WA

I know nothing about the compiler.

I am just curious about what causes this difference, and what should I do to avoid these bugs.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English iaNTU 2020-05-28 20:12:32 6
en1 English iaNTU 2020-05-28 20:11:54 758 Initial revision (published)