CristianoPenaldo's blog

By CristianoPenaldo, history, 23 months ago, In English

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!

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

| Write comment?
»
23 months ago, # |
Rev. 2   Vote: I like it +6 Vote: I do not like it

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

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

    Thank you! How to solve E, please?

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

      you can simply brute force using a dfs and a stack, did you notice that the answer is <= 10^6 ?

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

        Oh, dude.

      • »
        »
        »
        »
        23 months ago, # ^ |
        Rev. 3   Vote: I like it 0 Vote: I do not like it

        I noticed that the answer <= 10^6 at the end of the contest. Next time I will try to be careful.

»
23 months ago, # |
  Vote: I like it +20 Vote: I do not like it

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

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

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

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

      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.

»
23 months ago, # |
  Vote: I like it +80 Vote: I do not like it

“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.

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

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!

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

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

»
23 months ago, # |
  Vote: I like it -26 Vote: I do not like it

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

»
23 months ago, # |
  Vote: I like it +42 Vote: I do not like it

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

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

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.

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

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

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

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.

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

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

»
23 months ago, # |
Rev. 3   Vote: I like it +6 Vote: I do not like it

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
  • »
    »
    23 months ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    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 ?

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

      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 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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?