Correct answer on online compilers but incorrect one on Codeforces

Правка en1, от grzinicdino, 2024-10-22 01:56:46

I've written my solution for this task https://codeforces.net/contest/702/problem/A When I submitted it I got the wrong answer on test 1 https://codeforces.net/contest/702/submission/287285925 My code outputs 4, instead of 3 which is the correct answer.

I reran the exact same code using the same input as in test 1 but got 3. I even tried to run it on a few online cpp compilers but they all still outputted 3. So my question is, how come only on Codeforces does my code output 4 instead of 3? Could it be that my code uses something that is not supported on Codeforces or have I simply made a mistake in my code?

Теги problem, c++, cpp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский grzinicdino 2024-10-22 01:56:46 686 Initial revision (published)