Shortest Path
59E2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 4 11 22 33 41 31 4 3
Output
21 3 4
Sample 2of 3
Input
3 1 01 2
Output
-1
Sample 3of 3
Input
4 4 21 22 33 41 31 2 31 3 4
Output
41 3 2 3 4
58%
59E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…