Accepted? No… Wrong Answer on test 2

Revision ru1, by Azady, 2026-04-21 18:54:35

I still remember the first time I got Wrong Answer on test 2. Before submitting, I felt very sure my code was correct. I was already thinking about the Accepted message. I thought, “Yes, this one is easy.”

Then Codeforces showed me the truth.

Wrong Answer on test 2.

Test 2 saw my code and said, “No, not today.”

I stared at the screen for a few seconds. I really thought the problem was in the judge, not in my code. But after checking again, I found the real mistake.

I used int when I should have used long long.

That was the whole problem.

My code worked for small numbers, but when the numbers got bigger, it failed. I felt so silly after finding it. One small word changed everything.

That is the funny part of cp. Sometimes the problem is not a big algorithm. Sometimes it is just one small mistake like this. A missing condition, a wrong loop, or using int instead of long long.

At that moment, “Wrong Answer” felt bad. But later, I laughed a little. Because every beginner makes this kind of mistake.

Now when I see test 2, I get a really nervous.

One day, I hope I will see Accepted first. But for now, even Wrong Answer is part of the journey.

Tags wrong answer on test2

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru2 Russian Azady 2026-04-21 19:00:12 4 Мелкая правка: 'y part of cp. Sometime' -> 'y part of CP. Sometime'
ru1 Russian Azady 2026-04-21 18:54:35 1225 Первая редакция (опубликовано)