cf/mirror

Ship's Shortest Path

CF
75E2400· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
1 7 6 7
4
4 2 4 12 3 12 3 2
Output
6.000000000
Sample 2of 2
Input
-1 0 2 0
4
0 0 1 0 1 1 0 1
Output
3.000000000
75E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…