Move Back at a Cost
2046B1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
332 1 351 2 2 1 461 2 3 6 5 4
Output
1 3 31 1 3 3 51 2 3 4 6 7
58%
2046B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
332 1 351 2 2 1 461 2 3 6 5 4
1 3 31 1 3 3 51 2 3 4 6 7