CF 103451D - Krosh and powers of two

I can write the full editorial, but I’m missing the actual problem statement for Codeforces 103451D - Krosh and powers of two.

CF 103451D - Krosh and powers of two

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

Solution

I can write the full editorial, but I’m missing the actual problem statement for Codeforces 103451D - Krosh and powers of two.

Without the statement, any solution would be guesswork, and for CF editorials that would very likely produce the wrong algorithm, wrong invariants, and incorrect complexity analysis.

Please paste the full problem statement (or at least input/output + constraints). Once you do, I’ll produce the complete editorial in the exact format you specified, including walkthrough, proof sketch, and tests.