Ship's Shortest Path
75E2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
1 7 6 744 2 4 12 3 12 3 2
Output
6.000000000
Sample 2of 2
Input
-1 0 2 040 0 1 0 1 1 0 1
Output
3.000000000
58%
75E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…