SanguineChameleon's blog

By SanguineChameleon, history, 6 months ago, In English

I've been dreaming of writing this for so long.


About 2 years ago, Radewoosh posted a blog celebrating that he had solved all 865 problems on Project Euler.

As a (naively optimistic) high-schooler back then, I thought to myself: "Surely it can't be that hard, right?"

2 years later, there are now 965 problems, and I've solved all of them!!


I can’t even begin to describe how happy I am, and how wonderful the journey has been. Maybe I’ll write about it in another blog sometime. For now, I’ll answer some questions you might be thinking...

Literally, who asked?

No one, of course. But this achievement means a lot to me, and I hope that this post inspires someone out there.

How long did it take?

Kind of a difficult question to answer, actually!

Here's a general timeline:

  • 2017 (11yo): Started solving Project Euler. Quickly gave up because it's too hard. Looked up solutions online (I swear I only looked at the first 100, sorry >.<). This is not the same account I currently have, FYI. (Challenge: can you find my old account?)
  • 2020 (2021?) (14-15yo): Created a new account, SanguineChameleon. Started solving again. Got bored and deleted the account.
  • Feb 2023 (16yo): Got reintroduced to Project Euler. Solved 4 problems or so on a new account, SanguineChameleon2. Didn't do much after that. I just left it there for a while.
  • Sep 2023-Oct 2025 (16-18yo): Okay, for real this time. Let's try to solve all the problems!

Basically, it took 2 years. More or less.

What was the last problem you solved?

I'll be boring and say it was #965. But wait, isn't that problem super easy?

Yes. I pretty much solved all the problems sequentially. I never skipped any.

Why? Well, if I didn't do that, I probably would've ended up getting lazy and giving up. It was a way to force myself to be uncomfortable, to actually think about problems, instead of just solving those that were already at my level.

Okay, so what was your hardest/easiest/most favorite/least favorite...

All of those questions are ill-defined. If you asked me 10 times, I'd give 10 different answers.

Yes, I am human. I have opinions. But I don't want to influence people into thinking that some problems are harder/easier/better than others. You'll have to come up with those conclusions yourself, by actually solving the problems!

Though, if you really want to know, then feel free to poke me in the Project Euler Discord. We can have lengthy discussions about how problem ABC is the greatest problem ever proposed, or how problem XYZ should be removed from the site entirely :P

ZOMG! You must be some sort of math genius!

No. Not at all. In fact, I'm only taking my undergrad intro to calculus and linear algebra courses now, and they're quite "difficult".

Not "difficult" in the same way Project Euler is, though. I just find them incredibly dry.

I've never considered myself "good at math". The only things I'd say I'm good at are "Googling" and "wasting a whole afternoon trying to solve a problem".

Although, after talking to a few Discord members, I realize I haven't gotten my point across, so I'll try again.

Taking a look at the About section of PE...

The intended audience include students for whom the basic curriculum is not feeding their hunger to learn...

So yes, if there is one thing that I am good at, it's being willing to learn.

To be able to discover a mathematical truth, to make an incredible observation, or even just dip my toes into a new field of math. I think that's what makes Project Euler fantastic.

I'll leave the symbol-shuffling and fancy notation to the real mathematicians.

At the end of the day, I'm just a silly teenager with too much time on his hands.

So should I start solving Project Euler?

As with many things, my answer is simply "Maybe."

If you want to experience the joy of solving problems, then sure, of course!

But if you just want to solve PE to get better at competitive programming, then I'd suggest thinking carefully about it.

Yes, there's some correlation between being good at PE and being good at competitive programming. But they're still two very different things.

You don't have to be an LGM to be good at PE, and you don't have to be good at PE to be an LGM.

I think the biggest difference is that competitive programming is a lot more mechanical: you have to solve X number of tasks within Y hours. Also, some of the techniques are more standardized.

For PE, there is no time limit, and there are no standard problems. Each new problem is like a gift from the problem setter, and you are free to bang your head against the wall for however long you want.

There are many more differences, but this margin is too narrow, so I'll leave it at that.


Lastly, I'd like to thank the following people:

  • Colin Hughes, for creating Project Euler. You've built something truly beautiful, and your site has changed my life.
  • Radewoosh, for writing the initial blog. If I hadn't read it, maybe I wouldn't have done any of this.
  • The Project Euler community, for setting brilliant problems and creating a wonderful environment to discuss problem-solving. I've only been in the Discord server for a few days, but I already know I'll enjoy my time here.
  • My dad, for introducing me to Project Euler.
  • My mom, for being incredibly supportive of her insane son.
  • You, for reading this blog!

...Now what?

Full text and comments »

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

By SanguineChameleon, 12 months ago, In English

Sorry about problem H.

Thank you for understanding, and we hope you enjoyed the rest of the problems :D


2096A - Wonderful Sticks

Idea: SanguineChameleon

Step 1
Step 2
Step 3
Step 4
Step 5 (Optional)
Implementation

2096B - Wonderful Gloves

Idea: SanguineChameleon

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Implementation

2096C - Wonderful City

Idea: thenymphsofdelphi

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6 (Optional)
Implementation

2096D - Wonderful Lightbulbs

Idea: thenymphsofdelphi

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Implementation

2096E - Wonderful Teddy Bears

Idea: SanguineChameleon

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Implementation

2096F - Wonderful Impostors

Idea: SanguineChameleon

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7

2096G - Wonderful Guessing Game

Idea: SanguineChameleon

Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7

2096H - Wonderful XOR Problem

Idea: SanguineChameleon

Step 0
Step 1.1
Step 1.2
Step 1.3
Step 2.1
Step 2.2
Step 2.3
Step 2.4
Step 3.1
Step 3.2
Step 3.3

Full text and comments »

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

By SanguineChameleon, 12 months ago, In English

1 minute before contest starts

Alright, this is it. The round is starting soon. I hope everything goes well!

9 minutes after contest starts

...What? Someone solved H already? Uh oh.

Okay, maybe they are just really good at XOR problems.

40 minutes after contest starts

Oh! An LGM solved it. Let's look at their submission...

// https://yukicoder.me/problems/no/2990

Oh. Oh no. Oh no no no no no.


Hi, so to me seems like a notorious coincidence.

I was the author of problem H, and unfortunately, it exactly coincides with No.2990 Interval XOR on yukicoder.

Just to be absolutely clear, I had the idea for H long before that:

  • I thought of problem H in January 2024.
  • The problem was proposed in February 2024.
  • The problem was approved in October 2024.
  • The problem on yukicoder was released in December 2024.

Here are some obligatory evidence screenshots:

Screenshot 1
Screenshot 2
Screenshot 3

That's why you see a lot of Japanese coders on the front page of the standings.

The standings of a rated contest. With prizes.


So yeah, it sucks that this happened. But to be honest, there's realistically nothing we could've done:

  • I had checked multiple times over the past few months to see if it had already appeared, since I was getting concerned that it might've already been posted somewhere. But I didn't find anything, and the Semantic Search hadn't logged the problem as of the time of writing this.

  • The statement is in Japanese, and it's practically impossible to find the problem if you don't search in Japanese or live in Japan. Now, you might say that we should've Googled in Japanese before the contest. But what if it wasn't a Japanese problem? What if it was a Polish problem? A Romanian problem? It's not feasible to try every language.

  • It took a whole year to get this round running. So much can change in a year. I was in high school when we proposed the contest, and now I'm in college! The fact someone else came up with a similar idea is just really unfortunate.


So what can we do now?

Make the round unrated? It seems like a reasonable option, but the fact that it isn't trivial to find suggests otherwise. And a very small percentage of people solved it anyway. Also, it's harder to determine who solved it legitimately than you might think.

Either way, sorry that this happened. I remember when I spent like 5 hours staying up all night trying to solve H, and I was very happy when I finally did. That's what I want everyone to experience on Codeforces: the joy of solving problems.

So I hope you enjoyed the rest of the problems. And if not, then sorry for that as well.

Good night, Codeforces!

Full text and comments »

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

By SanguineChameleon, 12 months ago, In English

✨ It took over a year, but it's finally here! ✨


Hello everyone! :D

We are proud to invite you to participate in Neowise Labs Contest 1 (Codeforces Round 1018, Div. 1 + Div. 2), which will be held on Apr/19/2025 17:35 (Moscow time).

The round will be rated for everyone. You will be given 8 problems and 2 hours to solve them. One of the problems will be interactive, so make sure to read the guide for interactive problems before the contest.

All problems were authored by thenymphsofdelphi and me.

We would like to thank the following people:

Scoring distribution:

A B C D E F G H
$$$500$$$ $$$750$$$ $$$1500$$$ $$$1750$$$ $$$2000$$$ $$$2750$$$ $$$2750$$$ $$$3500$$$

See you soon, and we hope you find the contest ✨ wonderful! ✨


And now, a word from our sponsor!

Neowise Labs is a proprietary trading firm founded by dark_ai, Igor_Kudryashov and Edvard. Most team members in Neowise Labs have maths and programming olympiad backgrounds. You can read more about us in the recent Codeforces post.

We’re open to find and work with new team members from the Codeforces community. If you’re interested in research, infra or other positions please fill out the form.

We’ve prepared presents for the winners and participants of the round:

  • The best three participants will receive Apple Macbook Air M4 13'.
  • The top 50 and random 50 participants from the top 500 will receive Neowise Labs caps.
  • We also prepared valuable presents for some of the top 500 contestants but the formula to choose those contestants is a secret and will be revealed after the contest is finished, sha512 checksum for the formula is below: 7b55c594304f082436ee82bc051cf209254c103ef4545a4045c61e5d8340426a8124d8e5b5f1e1da8e534e72c4336255bd0443e5a47e35c03c6dd55ae5cbc1cc

Best of luck on the contest and have fun!


Update 1: The scoring distribution has been announced!

Update 2: Seems like a notorious coincidence.

Update 3: The editorial has been released.

Congratulations to our winners!

  1. maroonrk
  2. BurnedChicken
  3. ksun48
  4. hos.lyric
  5. tourist
  6. heuristica
  7. Benq
  8. Radewoosh
  9. zhoukangyang
  10. maspy

Full text and comments »

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