CF 102824J - Tanya's Revenge

I can write the editorial, but I need the actual problem statement for Codeforces 102824J “Tanya's Revenge” first.

CF 102824J - Tanya's Revenge

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

Solution

I can write the editorial, but I need the actual problem statement for Codeforces 102824J “Tanya's Revenge” first. I could not reliably identify the problem details from the problem ID alone, and writing an algorithm, proof, code, and tests without knowing the exact rules would risk producing a completely incorrect editorial.

Please paste the full statement (including input, output, constraints, and samples), and I’ll produce the complete editorial in the requested format.