Блог пользователя Azady

Автор Azady, история, 10 часов назад, По-русски

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.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
10 часов назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Автокомментарий: текст был обновлен пользователем Azady (предыдущая версия, новая версия, сравнить).

  • »
    »
    9 часов назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    :/

»
10 часов назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
9 часов назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Are you serious? say vallahi

»
9 часов назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Are you serious bro? say wallahi!