Radewoosh's blog

By Radewoosh, 12 months ago, In English

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.

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

»
12 months ago, # |
  Vote: I like it +36 Vote: I do not like it

Wow!

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

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

    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.

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

      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 :)

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

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

      • »
        »
        »
        »
        12 months ago, # ^ |
        Rev. 2   Vote: I like it +109 Vote: I do not like it

        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

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

          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 :)

  • »
    »
    12 months ago, # ^ |
      Vote: I like it -15 Vote: I do not like it

    Radewoosh, you are the first in codeforces, you completed the project, Euler, wow

»
12 months ago, # |
  Vote: I like it +45 Vote: I do not like it

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

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

    I was thinking about solving Pell's equations or stuff like that, but the paper is nice anyway.

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

      Wait, how and why were you solving Pell's equations without continued fractions? :smiling_face_with_tear:

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

        Reading this everytime and crying. Maybe I've used them a few times in a way which required no/minimum of understanding.

»
12 months ago, # |
  Vote: I like it +19 Vote: I do not like it

Congrats Radewoosh!

»
12 months ago, # |
  Vote: I like it +18 Vote: I do not like it
»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Congratz!

What was your favourite problem?

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

    I don't know of Radewoosh's favorite problem, but it truly blows my mind that the process described in https://projecteuler.net/problem=566 always ends. It has to be one of my fav and most legendary problems for me even though I made 0% progress towards solving it

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

    Hard to say, so many of them were so good. I don't remember them all so well, but looking at the list I remember 499 as a one with strong "wow, that's so cool" effect.

»
12 months ago, # |
  Vote: I like it +27 Vote: I do not like it

That's very impressive, congratulations!

»
12 months ago, # |
  Vote: I like it +18 Vote: I do not like it

gg wp

»
12 months ago, # |
  Vote: I like it +141 Vote: I do not like it

Ok, fine, I will start doing Project Euler

»
12 months ago, # |
Rev. 2   Vote: I like it -22 Vote: I do not like it

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?

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

    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)

    • »
      »
      »
      12 months ago, # ^ |
        Vote: I like it -19 Vote: I do not like it

      yes, my goal is to reach expert here (at least) so i was asking if this will help or should i focus in another topics (at least for now), also ofc i won't downvote lol i can't even get why are they doing it :3

      thanks anyway<3

      • »
        »
        »
        »
        12 months ago, # ^ |
        Rev. 2   Vote: I like it -13 Vote: I do not like it

        thanks first, i siad don't downvote me not for you exactly but for everyone becuase in so many comments where i give some advice i get downovoted especially when i was gray(check also the comment of A4n0n4 it has so many downvotes although it is very interesting advice), as for becoming specialist i think focus more on codeforces archive problems you can use https://acodedaily.com/ very interesting to practice random problems

        • »
          »
          »
          »
          »
          12 months ago, # ^ |
          Rev. 2   Vote: I like it -10 Vote: I do not like it

          thanks again! i was using https://c2-ladders-juol.onrender.com/ but i will try to use the above site too ..

          about the downvotes,(anyone can just click it without a reason so why should we care? xD)

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

            i think c2 ladders has some old problems you will not deal with this issue when using atcoder daily ladders, you can check out usaco guide too.

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

    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.

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

      okay this is really helpful, thanks a lot

    • »
      »
      »
      12 months ago, # ^ |
        Vote: I like it -13 Vote: I do not like it

      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

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

      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 :)

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

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

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

Congrats, great achievement!

Do you have any favorite problems?

»
12 months ago, # |
  Vote: I like it -8 Vote: I do not like it
»
12 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it


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

Eyy, nicely done, congrats!

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

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

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

Gratz remarkable WOW Did you use any books that helped you to achieve that?or any additional resources

»
12 months ago, # |
  Vote: I like it +77 Vote: I do not like it

What was the last problem?

»
12 months ago, # |
  Vote: I like it +35 Vote: I do not like it

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

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

Wow, very cool!

»
12 months ago, # |
  Vote: I like it +38 Vote: I do not like it

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?

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

    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.
»
12 months ago, # |
  Vote: I like it +36 Vote: I do not like it

Congrats, Radewoosh!!!

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

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

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

Legendary! Congrats!

»
12 months ago, # |
Rev. 2   Vote: I like it +16 Vote: I do not like it

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.

  • »
    »
    12 months ago, # ^ |
    Rev. 2   Vote: I like it +8 Vote: I do not like it

    I'm not him, but I will share some of my favourite: 851 (see top solvers), 591 (cool theory) and 677.

    Edit: I have 580 solved

»
12 months ago, # |
  Vote: I like it -18 Vote: I do not like it

Will it help me improve my CP skills?

»
12 months ago, # |
Rev. 3   Vote: I like it -83 Vote: I do not like it

[Deleted]

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

Wow. One of my friend gave me that 3 and 5 question (first question of PE) for some hints. Then I started solving PE. I did only the first 4 problems. After reading your blog I will continue again.

»
12 months ago, # |
  Vote: I like it +11 Vote: I do not like it

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

»
10 months ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

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 ?

»
9 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Grats!

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

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

»
4 months ago, # |
  Vote: I like it +124 Vote: I do not like it

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!

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

    the fact that there are problems that take months for LGMs is scary

    • »
      »
      »
      4 months ago, # ^ |
        Vote: I like it -20 Vote: I do not like it

      i don't think you need to know what quasi-modular forms or dirichlet's stuff are in order to be LGM, but you'd definitely need to in order to be level 30+ in projecteuler

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

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

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

    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.

»
6 weeks ago, # |
Rev. 2   Vote: I like it +12 Vote: I do not like it

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
  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it +16 Vote: I do not like it

    Please don't be offended by my stupidity but are we supposed to solve it manually by pen-paper or by writing code?

    • »
      »
      »
      6 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Code.
      In fact, they claim every problem can be solved with a program that takes less than a minute on a modestly powered computer.

»
6 weeks ago, # |
  Vote: I like it +11 Vote: I do not like it

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.