Minimum Array
1157E1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
40 1 2 13 2 1 1
Output
1 0 0 2
Sample 2of 2
Input
72 5 1 5 3 4 32 4 3 5 6 5 1
Output
0 0 0 1 0 2 4
58%
1157E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
40 1 2 13 2 1 1
1 0 0 2
72 5 1 5 3 4 32 4 3 5 6 5 1
0 0 0 1 0 2 4