CF 1051931 - Змейка

I don’t have the actual problem statement for Codeforces 1051931 - “Змейка” in your message, and without it I’d be forced to guess the task, which would make the editorial incorrect.

CF 1051931 - \u0417\u043c\u0435\u0439\u043a\u0430

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

Solution

I don’t have the actual problem statement for Codeforces 1051931 - “Змейка” in your message, and without it I’d be forced to guess the task, which would make the editorial incorrect.

Please paste the full statement (or at least input/output description + constraints + sample). Once you send it, I’ll produce a complete Codeforces-style editorial in the exact format you specified, including walkthrough, proof, code, and test cases.