The Classic Problem
464E3000· legendary gm5s768 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 41 4 21 2 02 3 03 4 01 4
Output
341 2 3 4
Sample 2of 3
Input
4 31 2 42 3 53 4 61 4
Output
11241 2 3 4
Sample 3of 3
Input
4 21 2 03 4 11 4
Output
-1
58%
464E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…