CF 104096C - Путешествие шахматного коня

The statement section is empty, so there isn’t enough information to produce a correct editorial. For a problem like “104096C - Путешествие шахматного коня”, small differences matter a lot: whether it’s shortest path on a grid, whether there are…

CF 104096C - \u041f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u044f

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

Solution

The statement section is empty, so there isn’t enough information to produce a correct editorial.

For a problem like “104096C - Путешествие шахматного коня”, small differences matter a lot: whether it’s shortest path on a grid, whether there are obstacles, whether the board is infinite, whether coordinates are large, and even whether moves are weighted or constrained changes the entire solution (BFS vs DP vs graph preprocessing).

If you paste the full problem statement (input, output, constraints, and any samples), I’ll write the complete Codeforces-style editorial exactly in the format you specified, including the algorithm walkthrough, proof, code, and test suite.