Hi.
I was trying out this problem right now — The Meaningless Game (https://codeforces.me/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?