cf/mirror

Maze

CF
123E2500· grandmaster1s256 MB⌨ stdin/stdout

Examples

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