CF 105786G - Miyamura and Cake

Got it. Please send the Codeforces problem (statement + constraints, or a link / screenshot text), and I’ll write a full competitive programming editorial for it. If you want a specific style (e.g.

CF 105786G - Miyamura and Cake

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

Solution

Got it. Please send the Codeforces problem (statement + constraints, or a link / screenshot text), and I’ll write a full competitive programming editorial for it.

If you want a specific style (e.g., Div2 A/B/C level, or very formal with proofs, or with code in C++), tell me that too.