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

Автор Norp, история, 9 месяцев назад, По-английски

Hello Codeforces!!!

Today I tried to do as much as possible so as not to fail Div.4. Solved several easy, several difficult problems, wrote 2 virtual past Div.4. But what pleased me most was today's Div.4. I solved 4 problems on the first try without difficulty, I really hope that after this round, even if I don’t become a pupil, I will at least get closer to it. I also practiced number theory today, which helped me a lot in the contest. I can't wait to see the results of the contest.

Plans for tomorrow:

Solve E from today's Div.4, and the remaining plans from yesterday.

Till Tomorrow!

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

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

Why do you upload solutions during the contest....Please refrain from doing that I was searching for cheaters after the contest and found you uploading solns on your channel CODE WITH NORP and your profile opened.

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

I'm sorry.....

»
9 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

I also solved the first 4 easly!

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

Why problem E I just made a small mistake and that leads to an end of my dream ToT After contest I just changed some lines and it's correct lol

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

    I had a same thing happen to me. I wrote a solution for E, it didn't pass, i stared at the code for 30 minutes, rewrote the idea in the exact same logic and it worked. i lost so much time to that :sob:

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

Congrats with good performance, but be careful about solutions leak.

E is almost like D, I think you can do it, just find possible lengths of k and then bruteforce.

Btw, do you read solutions by others (like jiangly/tourist/ksun48/..) after solving by yourself? I highly recommend doing that at least to enjoy beautiful and clean code.

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

    By the way, do you think my solution for D will pass system testing?

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

      if people used your code, then no.

    • »
      »
      »
      9 месяцев назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      It's quite hard to read with multiple operations packed into one line, that's why I recommended reading good examples :)

      Also there are some possibilities for subtle errors, for example, GMs never compare int i with sqrt(a), instead they compare i*i with a to avoid possible rounding errors.

      Maybe your solution is prone to TLE with 50k of 83160 (or 87846), since you always recalculate everything on every launch. Otherwise probably it should pass. But I wouldn't take such risks and do like this.

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

        As a result, the AC without any problems, on top of everything else, this round brought me to level 1100, a new record

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

          Nice, but don't make a habit of implementing solutions 15 times slower than necessary (and more code at the same time), time limits are not always so generous

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Hey Norp, what resource/questions did you use for practicing number theory. Checked out your youtube channel, you just gained a subscriber, yayyy

»
9 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

I wish you good luck and don't give up no matter what. <3

»
9 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Others have already said, but make sure to upload your solutions to round AFTER the round ends, or someone might use it to cheat.

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Bro, you submit too many 800 problems, I think you should practice on 1200-1400 problems and then you will definitely become a pupil!