CF 104067C - Давайте разделимся!

I don’t have the actual statement of Codeforces 104067C - “Давайте разделимся!” in the prompt, and I can’t reliably reconstruct it from the title alone without risking writing a completely incorrect editorial.

CF 104067C - \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043c\u0441\u044f!

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

Solution

I don’t have the actual statement of Codeforces 104067C - “Давайте разделимся!” in the prompt, and I can’t reliably reconstruct it from the title alone without risking writing a completely incorrect editorial.

If you paste the problem statement (or even just the key idea: what the input/output means and constraints), I’ll produce the full editorial in exactly the style you requested, including derivation, algorithm walkthrough, code, examples, and edge cases.