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

Автор Radewoosh, 2 года назад, По-английски

It was a beautiful journey full of internet digging, searching for patterns, learning stuff, fighting with formulas on paper, making crazy observations, coming up with brilliant ideas, implementing crazy optimizations, waiting for the programs to finish, suffering when something was wrong, and so on (and each of the mentioned not once not twice took multiple hours).

It's been a couple of months since I was left with the last unsolved problem and finally I did it! I didn't give up and I obtained the answer alone, without anyone's help, like in the rest of the problems (I was using only internet sources created before the publication of the problem). I'm writing this blog because I am bursting with joy and I wanted to share it with the community. I highly recommend PE as most of the problems were definitely very high quality (and some were a real pain in the ass, but they still teach how to overcome stuff that you're uncomfortable with).

Here's a little souvenir for me:

PS I still have no clue how to do anything useful with continued fractions.

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

»
2 года назад, скрыть # |
 
Проголосовать: нравится +36 Проголосовать: не нравится

Wow!

PS. Could you solve problem H from https://mirror.codeforces.com/contest/1666 ?

  • »
    »
    2 года назад, скрыть # ^ |
     
    Проголосовать: нравится +17 Проголосовать: не нравится

    I don't get if it's a sarcasm or what xd That's true that the blog has the vibe of bragging, sorry for that, I just wanted to share my happiness that it's over. I'm not insane yet and I don't think that I can solve everything or smth.

    • »
      »
      »
      2 года назад, скрыть # ^ |
       
      Проголосовать: нравится +69 Проголосовать: не нравится

      Sorry, I didn't want it to look sarcastic, it is really cool to solve all PE problems!

      The problem in the link is where you potentially could do something useful with continued fractions :)

      • »
        »
        »
        »
        2 года назад, скрыть # ^ |
         
        Проголосовать: нравится +36 Проголосовать: не нравится

        Oh, ok, sorry, I was totally lost with your message. I might give your problem a try :P

      • »
        »
        »
        »
        2 года назад, скрыть # ^ |
        Rev. 2  
        Проголосовать: нравится +109 Проголосовать: не нравится

        It's the curse of written word in the Internet that with the lack of facial expressions and intonation it is sometimes hard to understand the intended message properly. I guess that everybody of us went through that a few times that we didn't get a sarcasm or a joke in the Internet and were made fun of cause of that, so we are naturally suspecting some traps even where there aren't any :p

        • »
          »
          »
          »
          »
          2 года назад, скрыть # ^ |
           
          Проголосовать: нравится +18 Проголосовать: не нравится

          I read some theory in linguistics that emojis (and stuff like "lol" ":p" "xD") is a substitution of facial expression in text! So we should use more :)

»
2 года назад, скрыть # |
 
Проголосовать: нравится +45 Проголосовать: не нравится

One thing you could do with continued fractions is to use them in order to run Dijkstra on rational weighted graph in near-linear time. Here you go! https://arxiv.org/abs/2311.03321

»
2 года назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Congrats Radewoosh!

»
2 года назад, скрыть # |
 
Проголосовать: нравится +18 Проголосовать: не нравится
»
2 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Congratz!

What was your favourite problem?

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

That's very impressive, congratulations!

»
2 года назад, скрыть # |
 
Проголосовать: нравится +18 Проголосовать: не нравится

gg wp

»
2 года назад, скрыть # |
 
Проголосовать: нравится +141 Проголосовать: не нравится

Ok, fine, I will start doing Project Euler

»
2 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится -22 Проголосовать: не нравится

congratulations!<3
-also may i ask, is it useful for cp? or should i do something else instead? i mean is it the best usage of time?
-what is the things i should know before start?

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

    i hope you accept my advice but i think project euler might kind of useful since the problems are solved using tricks you will learn however i think your question is it useful for cp is kind of big i mean what is your goal is it rating in codeforces if this is the case and then open archive and solve problems above your level do you mant IOI do more olympiad problems once you have mastered basic tricks(please do not downvote me)

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

    I solved approx 100 project euler problems and so far i can't say its an efficient way to learn CP. It's way more oriented towards interesting and fun (to me at least) mathematics stuff.

    If you are looking towards 100% completion of a problem set that brings you progress for CP, I find CSES great. It's great at least until "advanced techniques" and "additional problems" which I didn't do yet si I can't say.

    What I really liked about CSES is that it cover most of the essential topics and for each topic, the problem are mostly climbing in difficulty which each problem. It's a perfect introduction to the multiple classes of problems before you face them in contest.

    • »
      »
      »
      2 года назад, скрыть # ^ |
       
      Проголосовать: нравится +10 Проголосовать: не нравится

      okay this is really helpful, thanks a lot

    • »
      »
      »
      2 года назад, скрыть # ^ |
       
      Проголосовать: нравится -13 Проголосовать: не нравится

      i aggree with you cses is very useful i solved a bunch of problems in it and i started feeling real improvement the tricks you learn there are very amazing good starting place before you have great understanding of how to use algos then you can start practicing randomly

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

      Hmm. I'm pretty curious to know why its getting downvoted.

      Maybe you find that project euler is an efficient way to improve your CP (for people below master)? or maybe you find CSES isn't a great problemset ?

      Really curious to hear a bit more than downvotes on this one, if someone can take the time :)

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

Congrats man!
Can you help me with a question im stuck on?

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

Congrats, great achievement!

Do you have any favorite problems?

»
2 года назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится
»
2 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится


»
2 года назад, скрыть # |
 
Проголосовать: нравится +42 Проголосовать: не нравится

Eyy, nicely done, congrats!

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

This is cool! How helpful do you think solving Project Euler problems is for solving problems in Codeforces contests or other programming contests?

»
2 года назад, скрыть # |
 
Проголосовать: нравится +77 Проголосовать: не нравится

What was the last problem?

»
2 года назад, скрыть # |
 
Проголосовать: нравится +35 Проголосовать: не нравится

How many years did it take you to complete them all? Also congratulations, that is no small achievement.

»
2 года назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

Wow, very cool!

»
2 года назад, скрыть # |
 
Проголосовать: нравится +38 Проголосовать: не нравится

waiting for the programs to finish

So now that you've solved every problem(and can access every problem's discussion page), can you tell us if the "one-minute rule" is real?

  • »
    »
    2 года назад, скрыть # ^ |
     
    Проголосовать: нравится +41 Проголосовать: не нравится

    You can definitely do every problem within one minute runtime, but:

    • lots of people (perhaps the majority) don't care about it, and you see posts like "finally my solution is finished in 69 days on my 420 cores". Occasionally that skews the solver numbers and fastest solves table significantly.
    • in rare cases (maybe 5%) it takes unreasonable and uninteresting optimizations to achieve. Still most of the time it's a nice hurdle to reach for, and you can learn a lot more if you try to do it the right way.
»
2 года назад, скрыть # |
 
Проголосовать: нравится +36 Проголосовать: не нравится

Congrats, Radewoosh!!!

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

Bro really took "Gotta Catch 'Em All" too seriously

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

Legendary! Congrats!

»
2 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +16 Проголосовать: не нравится

Congratulations Radewoosh! Which topic would you say appealed the most to you among all Project Euler problems, in terms of problem statements and solutions, possibly separately? Separately because my experience with PE has been that there are some problems that look benign but end up being really cool and some that are the complete opposite of this description, so I was wondering whether this is true for others too, especially someone who has solved all problems.

»
2 года назад, скрыть # |
 
Проголосовать: нравится -18 Проголосовать: не нравится

Will it help me improve my CP skills?

»
2 года назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Highest rated on Codeforces currently, and now AKed PE. Congrats Radewoosh, you're having quite an year!

»
2 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +10 Проголосовать: не нравится

Hey,

Congrats on the achievement !!

What are some of the resources that you used to refer to revisit math concepts while solving or when stuck on a problem ?

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

Grats!

»
2 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Congrats! If one is to start Euler project what book resources would you recommend to have a chance to solve most of them? I bet I mean book positions from combinatorics, geometry, number theory, game theory, ... ? What set of skills is crucial to solve the most difficult ones?

Thanks a lot in advance for your tips and recommendations. Cheers, Pawel

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

I've completed Project Euler, too.

I had ~4 problems left at the time of this blog post, feeling like I would need many more years, but then I was really motivated by your completion. Congratulations and thank you!

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

Do you guys usually solve PE problems using python or c++? which one do you think is more convenient?

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

    I usually use C++ just because I'm more familiar with it. I would say Python is more convenient since it has a lot of useful libraries to deal with big integer, high decision floating number, etc. Anw, I only have 123 problems solved for now so I can't speak for the harder problems.

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

I have now solved half of the problemset; this was my long-term goal.
Solving the full problem set is definitely beyond my range.

Spoiler
»
18 месяцев назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Hi Radewoosh, Congratulations on that achievement! Can you please share what resources you used in case you got stuck? I am on level 4 there.