CF 105798K - Ксюша против гориллы

I’m missing the actual problem statement for “Codeforces 105798K - Ксюша против гориллы”, so I can’t safely derive the solution or write a correct editorial yet.

CF 105798K - \u041a\u0441\u044e\u0448\u0430 \u043f\u0440\u043e\u0442\u0438\u0432 \u0433\u043e\u0440\u0438\u043b\u043b\u044b

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

Solution

I’m missing the actual problem statement for “Codeforces 105798K - Ксюша против гориллы”, so I can’t safely derive the solution or write a correct editorial yet.

Right now the sections you provided (Problem / Input / Output) are empty, which usually means one of:

the statement didn’t get copied, or it’s a local/problemset-only task without public text.

Send the full statement (or even a screenshot / raw text dump), and I’ll produce the complete editorial in the exact format you specified, including the derivation, edge cases, and full implementation.