This is one of the hardest problems I've ever managed to solve, and the way that the solution is created is absolutely beautiful and unexpected. It's also the problem that made me red on Codeforces. Do you think you can do it?
Thanks to @AlgorithmsConquered for helping me with the edit at the beginning.
The special problem: https://codeforces.com/contest/1383/p...
My solution code: https://codeforces.com/contest/1383/s...
Official solution: https://codeforces.com/blog/entry/80562
My site that I used to view contest statistics: https://contest-replay.colingalen.rep...
Timestamps:
Intro 00:00
The problem 00:44
The story behind the problem 03:01
The solution 07:58
Outro 11:58