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

Автор Negationist, история, 27 часов назад, По-английски

On many problems, I think of the solution very quickly but often spend a long time fixing and debugging the code to do what I want. For https://codeforces.net/problemset/problem/1973/B, I thought of a sliding window technique to find all windows that satisfy the or condition which is O(n). Yet, it took me like an hour and multiple failed submissions to get an AC. Right now, it feels like I have the "brains"(ingenuity) but not the "brawn"(implementation skills) right now. Furthermore, when I'm spending more time debugging than constructing it feels like I'm somewhat wasting my time(also its not very fun lol). What should I do?

P.S: I know someone is going to comment on how long I have been doing cp. Yes, I have only being doing cp for 1.5 months, and yes I know my implementation will naturally get better over time. Still, I'm looking for any advice BESIDES that. Thank you.

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

»
27 часов назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Try to solve random problem rather then specific topic. To enhance your implementation skill you should solve constructive, implementation and math category problem.

»
27 часов назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

One thing that helped me improve implementation was look at other people's codes if i face a problem that i struggled to implement. And the other thing is to solve easy problems just to train implementation. So problems that are your rating or 100/200 rating lower

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

    Thanks! Also you hit expert in 1.5 months I feel dumb. Need to be more consistent I think.

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

Auto comment: topic has been updated by Negationist (previous revision, new revision, compare).

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

Pray to God.

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

Try the problems based on implemention and if you find it difficult see others code who had implemented it beautifully.you should make the difference upon your code and others code,and learn from it.

»
12 часов назад, # |
  Проголосовать: нравится -14 Проголосовать: не нравится

Use o1-mini. It's good enough to have brilliant ideas. AI will make boring implementations for you.

  • »
    »
    11 часов назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    how does that improve his implementation skills?

    • »
      »
      »
      10 часов назад, # ^ |
        Проголосовать: нравится -6 Проголосовать: не нравится

      Nowadays, it is essential for every competitive programmer to learn how to use AI effectively (for purposes of skills training). One can quickly verify their own algorithmic ideas without spending time on coding, or observe an AI implementation to learn coding techniques, similar to reading an editorial.

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

      are you even allowed to use ai to implement your code? also i feel like if a problem was short, you could just implement it yourself and if it was long you probably shouldn't trust ai anyway

      • »
        »
        »
        »
        80 минут назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        why shouldn't it be allowed, who can prohibit it? AI is specially trained to solve problems, including CP problems. You are free to use it in any way to improve your CP skills. Those who ignore AI will lose out in the long run.