Curious Array
407C2500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 10 0 0 0 01 5 0
Output
1 1 1 1 1
Sample 2of 2
Input
10 21 2 3 4 5 0 0 0 0 01 6 16 10 2
Output
2 4 6 8 10 7 3 6 10 15
58%
407C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)