cf/mirror

Maze 2D

CF
413E2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 7
.X..
...X
5 1
1 3
7 7
1 4
6 1
4 7
5 7
Output
1
4
0
5
2
2
2
Sample 2of 2
Input
10 3
X...X..X..
..X...X..X
11 7
7 18
18 10
Output
9
-1
3
413E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)