Dynamic Shortest Path
843D3400· legendary gm10s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 2 91 2 02 3 02 1 21 31 22 1 11 31 22 2 1 21 31 2
Output
102142
Sample 2of 2
Input
5 4 92 3 12 4 13 4 11 2 01 51 42 1 22 1 21 42 2 1 31 42 1 41 4
Output
-11234
58%
843D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…