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

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

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
  • Проголосовать: не нравится

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

Wow!

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

  • »
    »
    12 месяцев назад, # ^ |
      Проголосовать: нравится +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.

    • »
      »
      »
      12 месяцев назад, # ^ |
        Проголосовать: нравится +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 :)

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

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

      • »
        »
        »
        »
        12 месяцев назад, # ^ |
        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

        • »
          »
          »
          »
          »
          12 месяцев назад, # ^ |
            Проголосовать: нравится +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 :)

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

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

»
12 месяцев назад, # |
  Проголосовать: нравится +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

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

Congrats Radewoosh!

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

Congratz!

What was your favourite problem?

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

    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 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 месяцев назад, # |
  Проголосовать: нравится +27 Проголосовать: не нравится

That's very impressive, congratulations!

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

gg wp

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

Ok, fine, I will start doing Project Euler

»
12 месяцев назад, # |
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?

  • »
    »
    12 месяцев назад, # ^ |
      Проголосовать: нравится 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)

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

      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 месяцев назад, # ^ |
        Rev. 2   Проголосовать: нравится -13 Проголосовать: не нравится

        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 месяцев назад, # ^ |
          Rev. 2   Проголосовать: нравится -10 Проголосовать: не нравится

          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 месяцев назад, # ^ |
              Проголосовать: нравится 0 Проголосовать: не нравится

            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 месяцев назад, # ^ |
    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.

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

      okay this is really helpful, thanks a lot

    • »
      »
      »
      12 месяцев назад, # ^ |
        Проголосовать: нравится -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

    • »
      »
      »
      12 месяцев назад, # ^ |
        Проголосовать: нравится +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 :)

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

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

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

Congrats, great achievement!

Do you have any favorite problems?

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


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

Eyy, nicely done, congrats!

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

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

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

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

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

What was the last problem?

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

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

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

Wow, very cool!

»
12 месяцев назад, # |
  Проголосовать: нравится +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?

  • »
    »
    12 месяцев назад, # ^ |
      Проголосовать: нравится +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.
»
12 месяцев назад, # |
  Проголосовать: нравится +36 Проголосовать: не нравится

Congrats, Radewoosh!!!

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

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

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

Legendary! Congrats!

»
12 месяцев назад, # |
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.

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

    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 месяцев назад, # |
  Проголосовать: нравится -18 Проголосовать: не нравится

Will it help me improve my CP skills?

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

[Deleted]

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

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 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

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

»
10 месяцев назад, # |
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 ?

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

Grats!

»
8 месяцев назад, # |
  Проголосовать: нравится +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

»
4 месяца назад, # |
  Проголосовать: нравится +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!

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

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

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

      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 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    2 месяца назад, # ^ |
      Проголосовать: нравится +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.

»
5 недель назад, # |
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
  • »
    »
    5 недель назад, # ^ |
      Проголосовать: нравится +16 Проголосовать: не нравится

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

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

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

»
5 недель назад, # |
  Проголосовать: нравится +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.