Azady's blog

By Azady, history, 11 hours ago, In Russian

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.

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
11 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Yeah it’s true, I’ve been through it myself.

»
11 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Are you serious bro? say wallahi!