Upside Down Dijkstra
2206C2200· master2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 73 42 31 23 51 41 54 51 4 3 5 2
Output
6 1 3 1 3 2 2
Sample 2of 2
Input
4 41 22 31 32 41 3 4 2
Output
impossible
58%
2206C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…