How is it possible that I get wrong answer on testcases?

Revision en2, by malikov_a, 2022-09-30 20:43:31

When I run the program on my PC, it gives me the correct answer and everything goes okay. But when I submit that code here, it says that it gives the wrong answer. I copied exactly the same input as it is given in the test case and I get the correct answer, but only on the compiler installed on my PC (or on the online compiler of C++). I tried to rewrite it 20 times — no result. Chose another version of the language — no result. Is it possible that the compiler of codeforces glitches and starts giving the wrong result no matter what? P.s. My code passes first test case, but bugs on second one. P.p.s. Problem's number is 978C

Tags c++, bugs, judgmental bugs, online judge


  Rev. Lang. By When Δ Comment
en2 English malikov_a 2022-09-30 20:43:31 1 Tiny change: 'ect answer but only ' -> 'ect answer, but only '
en1 English malikov_a 2022-09-30 20:42:47 701 Initial revision (published)