CF 103112G - Квест

The editorial request is missing the only thing that actually determines the solution: the problem statement. “Codeforces 103112G - Квест” is not enough to reconstruct the task reliably, and guessing would almost certainly produce a wrong or irrelevant editorial.

CF 103112G - \u041a\u0432\u0435\u0441\u0442

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

Solution

The editorial request is missing the only thing that actually determines the solution: the problem statement.

“Codeforces 103112G - Квест” is not enough to reconstruct the task reliably, and guessing would almost certainly produce a wrong or irrelevant editorial.

Send the full problem statement (or a link / pasted text including input, output, constraints, and samples), and I’ll write the complete editorial in the exact format you specified.