Design Tutorial: Learn from a Game
472E2800· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
2 21 32 31 33 2
Output
31 12 22 11 1
Sample 2of 4
Input
2 21 32 31 22 3
Output
-1
Sample 3of 4
Input
1 41 2 3 44 3 2 1
Output
-1
Sample 4of 4
Input
4 112343124
Output
23 12 11 1
58%
472E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)