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

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

Sorry for this shit blog. I am quite emotional now. I admit I am stupid!!!

Still only solve 4 problems in ABC284:

  1. RE in problem A because I select the Python interpreter instead of G++.
  2. Stuck at D because of an unknown bug of my Pollard Rho template, and stuck it again because of a buggy binary search template.
  3. Stuck at E.
  4. Get idea for F, pass 2 minutes after the contest. I use string hash: https://atcoder.jp/contests/abc284/submissions/37848937

Please comfort me or just tell me I am stupid. I admit that I am stupid and behave like a so-called giant baby but I really need comfort, thank you for your help!

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

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

it's fine, sometimes stupid mistake happens, you can't really prevent it, so don't blame yourself for it!

probably why i have 8 sumissions on C lol

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

No stupid person gets to expert, 1752 even. Making stupid mistakes is ok, it doesn't make you stupid

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

    Still don't reach 1200 for this account. One of my alt reaches 1300. Is it a curse? I mean Atcoder.

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

      Atcoder is very different and harder, in my opinion, from codeforces. From my own experience I can tell that you need to practice atcoder a lot and after that you will get decent.

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

“If you realize that you were stupid — you are getting smarter”

It's normal to make mistakes. It's just an opportunity for you to learn something new.

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

Thank you all! I know I behave like a giant baby. Now I calm down and I hope the hash method may be beneficial for you!

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

    Soy estúpido. Siempre quiero comodidad. Persona idiota muy perezosa. debería estar demasiado avergonzado de mí mismo

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

Yes you indeed are stupid, I can see it through your username. CR7 GOATED

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

Score some penalties in Al-Nassr you'll feel better

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

ok sure, i am going to comfort you. No one is holding you at gunpoint asking to solve in the given time limit otherwise you are going to lose your life. This is a nice thing to know.

Real life gives you lots of time, so if you put in enough time maybe you are going to crack P vs NP instead of these kiddish problems that have been solved thousands of times by millions of people every year.

Become like Einstein who gave up decades for a single problem. Take it sloow.

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

I didn't participate in this contest, but D is much easier than you think

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

It's totally normal to make mistakes. I have came up with the solution to problems just after the contest so many times. For example in the recent 842 div.2 contest, I solved E just after the contest. I know it's very frustrating. But you should keep participating in contests and solving problems, and eventually you will improve.

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

But have you considered that I solved ABCDE within 20 minutes for the first time, but the disabled chose Unrated :(

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

Got -14 at D, and still figuring out why it was failing, at last, got AC, 7 mins before the end

by doing

I want to know why my solution was failing My approach was to find all the primes until 3e6 (by sieve) and then divide it if it's divisible by n.

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

    If n is 12 (2*2*3), first z is 2, then val = n/z is 6. After val=sqrt(val), val becomes sqrt(6) which is 2 ! Won't the logic print out 2 2 ?

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

      No, because I have checked if sqrt(val) and z are equal or not, but I got your point,

      sqrt(val)*sqrt(val)== val is not checked, which may give error

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

Runtime Error (RE) causes a penalty, but compilation error (CE) does not.

When submitting a C++ program as a Python program, why does it cause a RE instead of a CE?