CF 1029351 - Два станка

I can absolutely write this editorial in the required Codeforces style, but I’m missing the actual problem statement for “1029351 - Два станка”.

CF 1029351 - \u0414\u0432\u0430 \u0441\u0442\u0430\u043d\u043a\u0430

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

Solution

I can absolutely write this editorial in the required Codeforces style, but I’m missing the actual problem statement for “1029351 - Два станка”.

Without the statement, I’d have to guess the task, and that would risk producing a completely wrong solution and walkthrough.

Please paste the full problem text (or a link / screenshot). Once I have it, I’ll produce a complete editorial with:

clear intuition, brute force vs optimal transition, full proof idea, walkthrough, code, and edge-case analysis exactly in the format you specified.