Codeforces Round #516 (Div. 2, by Moscow Team Olympiad)D. Labyrinth·「BFS」

NoSuchKey