valdaarhun's blog

By valdaarhun, 4 years ago, In English

Hi.

I was trying out this problem right now — The Meaningless Game (https://codeforces.com/problemset/problem/833/A)

When I submit my code using g++17 7.3.0, I get a wrong answer on test case 2. Here's my submission 81163127. However, the first 20 pairs of numbers give me the right answer when I test it on my computer which does not match the first 20 outputted lines displayed on codeforces.

Things become weirder (for me) from here onwards. When I submit the exact same code using g++ 9.2.0 (64 bit), my code gets accepted. Here's the submission 81163450.

Could someone please explain why this problem arises?

  • Vote: I like it
  • +6
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by valdaarhun (previous revision, new revision, compare).

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by valdaarhun (previous revision, new revision, compare).