Due to my poor understanding ability, I can't totally understand official editorials of some problems, even after got AC. So I plan to rewrite some of the editorials.
Some principles:
Divide and conquer. Divide a large, hard problem into several smaller, easier problems.
For ease of understanding, use visual expressions as much as possible.
The shorter the better.
If you have any other problems you'd like me to rewrite the editorial for, feel free to let me know in the comments. Also, I believe writing an editorial with your own understanding is a great way to make progress.
Let's go.
Rating: $$$2500$$$
Attempt and Insight
How to prove it?
2.Codechef Simultaneous Robots
Rating:???
Some easy observation
A classical trick
Patch for official editorial (the most interesting part)
Can it be extended to any k?
Another Approach