CF 102878I - Nobody Knows Better Than Me

I can write the full editorial, but the problem statement section is empty and I could not reliably recover the actual statement for Codeforces 102878I - “Nobody Knows Better Than Me” from the information available.

CF 102878I - Nobody Knows Better Than Me

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

Solution

I can write the full editorial, but the problem statement section is empty and I could not reliably recover the actual statement for Codeforces 102878I - “Nobody Knows Better Than Me” from the information available. I do not want to invent the algorithm, constraints, or code for a different problem.

Please paste the full problem statement (including input, output, constraints, and samples), and I will produce the complete editorial in the requested format with the solution, proof, Python implementation, walkthroughs, tests, and edge cases.