Ayushrusiya47's blog

By Ayushrusiya47, history, 2 months ago, In English

Hello people of Codeforces,

I really hate problems with too many edge cases or difficult implementation, so I've been avoiding such problems for far too long. Because of that I am really bad with casework and implementation. Most of the time I can come up with solutions but fail to implement them before the timer runs out on me. So I have decided to suffer through such problems to improve my implementation skills.

So give me the worst problems you have ever seen, problems with cruel edge cases or a cruel number of cases or problems with implementation much more difficult than their logic. Do your worst and I'll try my best to suffer through them.

Also share any cool implementation tricks you have for the problems with

Spoiler

or any general tricks to make the code smaller.

P.S. Is there anyone who actually enjoys casework !!!

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

»
2 months ago, # |
  Vote: I like it +3 Vote: I do not like it

this is a recent one that comes to mind, and this is the one I hate the most

  • »
    »
    2 months ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Man I liked colored portals. I think it was a good problem..

    • »
      »
      »
      2 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      the logic is fine, but the implemenration is so cringe. And also if i got AC on it i wouldve reached expert in that round, so i was even more mad

»
2 months ago, # |
  Vote: I like it +6 Vote: I do not like it

I do not hate problems (cause I can't hate if can't solve), but I don't like big paras of problem statement.

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

This div2C is absolutely hideous. Far too much casework. It's not even a good problem.... This is a problem I'm just really salty about because it made me lose almost 100 rating.

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it
»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

problem B of today's contest 2026B - Black Cells

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it was nice had an nice O(n^2) solution and a Binary search easy solution too

»
2 months ago, # |
  Vote: I like it +3 Vote: I do not like it
A general trick

For caseworking as a whole, my only advice is to solve more in problemset. Try to do it with the most convenient way you'd like (maybe reducing your code size could be one metric for that). Even if you AC, if you feel that your code looks too messy, try resolving that, too. Use this habit to slowly develop your own ways to do caseworking that's beautiful enough for your own eyes.

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Sorry but this is the one 1771C - Hossam and Trainees for me