CF 106230A - Гипнотическая мелодия

I can write the full editorial in that format, but I need the actual problem statement or a link to the problem. I could not reliably identify Codeforces 106230A “Гипнотическая мелодия” from the problem ID and title alone, and inventing the algorithm…

CF 106230A - \u0413\u0438\u043f\u043d\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u0435\u043b\u043e\u0434\u0438\u044f

Rating: -
Tags: -
Solve time: 35s
Verified: no

Solution

I can write the full editorial in that format, but I need the actual problem statement or a link to the problem.

I could not reliably identify Codeforces 106230A “Гипнотическая мелодия” from the problem ID and title alone, and inventing the algorithm, edge cases, and tests would likely produce a wrong editorial.

Please paste the statement (including input/output and samples), and I’ll produce the complete editorial with the exact sections and style you requested.