CF 106098D - Bald and Siniora

I don’t have the problem statement for Codeforces 106098D - Bald and Siniora in the prompt, and I can’t reliably reconstruct it from the title alone.

CF 106098D - Bald and Siniora

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

Solution

I don’t have the problem statement for Codeforces 106098D - Bald and Siniora in the prompt, and I can’t reliably reconstruct it from the title alone.

To write a correct editorial (especially one with proof, edge cases, and code), I need at least the full statement or a link/text of:

the input format, what is being computed, and the constraints.

Send that and I’ll produce a full senior-level editorial in the exact format you specified.