gm_monkey's blog

By gm_monkey, history, 34 minutes ago, In English

Hi! I’m looking for some feedback from people earlier in their CP journey than me :)

I’ve been doing CP for a few years, mostly olympiads and CF. When I got stuck, it was usually on dumb things, like debugging, giving up on an idea too early, or not knowing what to practice next. Nobody told me that was the problem, I just figured it out slowly.

I’m curious what it is for you. What’s the thing slowing you down most right now? And if someone sat with you for an hour, what would you want them to do?

Higher rated people, what do you wish you’d known earlier?

Any answer helps, even one line. Thanks!

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
14 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

I would ask him to teach me how to debug a solution which gets wrong answer on test 2, when we feel the code and the ideas are correct. It always happens that I almost got the right ideas and missed a silly thing.

I've also realised that even after getting the key ideas, I tend to overcomplicate the coding part, and miss small implementation tricks (for ex, iterating from the back of array instead of front or sorting in reverse order )

  • »
    »
    1 minute ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    For wa 2, i tend to test with random tests manually. Finding the test that was wrong is the mostly hard part for me. AND PLEASE, don’t look at the wrong test. In no olympiad or contest, you wont see it. Maybe if you are desperate.

    If manual random testing doesn’t work, I create a simple random generator and make a obviously correct brute force. And compare the results. This works like 90% of the time. And you test the brute force by just sending it. Bc most of the time getting time limit in order to get ac is worth it. In OI problems, you even get points for the subtasks.

    After finding the test that was giving wrong answer, you just need to cout every single thing that you think can be the bug.

    But not finding and not being able to fix is also a normal thing. That is why we learn from them. I hope this was an answer good enough to help.