cf/mirror

Labyrinth Adventures

CF
1681E2600· international gm6s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
2
1 1 1 1
10
1 1 1 1
1 1 1 2
1 1 2 1
1 1 2 2
1 2 1 2
1 2 2 1
1 2 2 2
2 1 2 1
2 1 2 2
2 2 2 2
Output
0
1
1
2
0
2
1
0
1
0
Sample 2of 2
Input
4
1 1 1 1
2 1 2 2
3 2 1 3
5
2 4 4 3
4 4 3 3
1 2 3 3
2 2 4 4
1 4 2 3
Output
3
4
3
6
2
1681E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…