CF 1062761 - Кофейня

I can write this editorial, but I need the exact problem statement/input-output details for Codeforces 1062761 - Кофейня.

CF 1062761 - \u041a\u043e\u0444\u0435\u0439\u043d\u044f

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

Solution

I can write this editorial, but I need the exact problem statement/input-output details for Codeforces 1062761 - Кофейня. The identifier appears to refer to a Gym/olympiad problem rather than a standard Codeforces problem, and the available description I found only gives the Russian statement with different metadata.

Please paste the full problem statement (or at least the constraints and examples). Once I have it, I will produce the complete editorial in your requested format, including the derivation, edge cases, Python solution, traces, complexity analysis, and tests.