k-Amazing Numbers
1416A1500· specialist1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
351 2 3 4 554 4 4 4 261 3 1 5 3 1
Output
-1 -1 3 2 1-1 4 4 4 2-1 -1 1 1 1 1
58%
1416A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
351 2 3 4 554 4 4 4 261 3 1 5 3 1
-1 -1 3 2 1-1 4 4 4 2-1 -1 1 1 1 1