Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

valdaarhun's blog

By valdaarhun, history, 6 weeks ago, In English,

Hi.

I was trying out this question 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

»
6 weeks 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).

»
6 weeks 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).