CF 105999I - Inseparable

I can’t reliably reconstruct Codeforces 105999I “Inseparable” from the ID alone, and without the actual statement any editorial would be guesswork and likely wrong. Please paste the full problem statement (or even a screenshot / partial text).

CF 105999I - Inseparable

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

Solution

I can’t reliably reconstruct Codeforces 105999I “Inseparable” from the ID alone, and without the actual statement any editorial would be guesswork and likely wrong.

Please paste the full problem statement (or even a screenshot / partial text). Once I have it, I’ll write a complete Codeforces-style editorial in the format you specified, including intuition, optimal derivation, implementation details, and edge-case handling.