Minimum Path
1473E2400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 45 3 42 1 13 2 22 4 2
Output
1 2 2 4
Sample 2of 3
Input
6 83 1 13 6 25 4 24 2 26 1 15 2 13 2 31 5 4
Output
2 1 4 3 1
Sample 3of 3
Input
7 107 5 52 3 34 7 15 3 62 7 66 2 63 7 64 2 13 1 41 7 4
Output
3 4 2 7 7 3
58%
1473E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…