CF 106415G - Derby

I can write the editorial, but I need the actual problem statement for Codeforces 106415G - Derby first. I could not reliably identify this problem from the title and ID alone, and I do not want to invent the algorithm, constraints, examples, or edge cases.

CF 106415G - Derby

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

Solution

I can write the editorial, but I need the actual problem statement for Codeforces 106415G - Derby first.

I could not reliably identify this problem from the title and ID alone, and I do not want to invent the algorithm, constraints, examples, or edge cases. Please paste the statement (including input/output and samples), and I will produce the full editorial in exactly the requested structure and style.