Labyrinth
1578L2400· grandmaster2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 31 2 31 2 41 3 42 3 6
Output
3
Sample 2of 2
Input
2 11 11 2 1
Output
-1
58%
1578L.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
3 31 2 31 2 41 3 42 3 6
3
2 11 11 2 1
-1