Equalize Them All
1144D1400· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
52 4 6 6 6
Output
21 2 31 1 2
Sample 2of 3
Input
32 8 10
Output
22 2 12 3 2
Sample 3of 3
Input
41 1 1 1
Output
0
58%
1144D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)