Sorry for this shit blog. I am quite emotional now. I admit I am stupid!!!
Still only solve 4 problems in ABC284:
- RE in problem A because I select the Python interpreter instead of G++.
- Stuck at D because of an unknown bug of my Pollard Rho template, and stuck it again because of a buggy binary search template.
- Stuck at E.
- 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!
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
Thank you! How to solve E, please?
you can simply brute force using a dfs and a stack, did you notice that the answer is <= 10^6 ?
Oh, dude.
I noticed that the answer <= 10^6 at the end of the contest. Next time I will try to be careful.
No stupid person gets to expert, 1752 even. Making stupid mistakes is ok, it doesn't make you stupid
Still don't reach 1200 for this account. One of my alt reaches 1300. Is it a curse? I mean Atcoder.
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.
“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.
Broo!! (-_-)ゞ゛
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!
Soy estúpido. Siempre quiero comodidad. Persona idiota muy perezosa. debería estar demasiado avergonzado de mí mismo
Yes you indeed are stupid, I can see it through your username. CR7 GOATED
YES CR7 is the goat!
I can't agree with you, Aveiro is just a rapist on the pitch.
Score some penalties in Al-Nassr you'll feel better
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.
I didn't participate in this contest, but D is much easier than you think
I believe so, but still don't know why the RHO algorithm fail?
Honestly I have never heard about RHO before xD. But I think you can try to find another solution, because RHO is really not necessary
YES I switch to another solution but waste a lot of time and get 1*WA.
Yeah, i think RHO is quite a way to solve this. But i found much easier solution, if you are interested: https://atcoder.jp/contests/abc284/submissions/37883851
https://paste.ubuntu.com/p/Ghzcsz5pkq/
This is my RHO algorithm and it gets a PASS.
Maybe you missed some details.
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.
But have you considered that I solved ABCDE within 20 minutes for the first time, but the disabled chose Unrated :(
Got -14 at D, and still figuring out why it was failing, at last, got AC, 7 mins before the end
BRUTE FORCE(till 3e9) and break when ans is found (ofc)
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.
If n is 12
(2*2*3)
, first z is 2, thenval = n/z
is 6. Afterval=sqrt(val)
, val becomessqrt(6)
which is2
! Won't the logic print out2 2
?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
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?
Because Python does not have a compiler...