Equalizing by Division (easy version)
1213D11500· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 31 2 2 4 5
Output
1
Sample 2of 3
Input
5 31 2 3 4 5
Output
2
Sample 3of 3
Input
5 31 2 3 3 3
Output
0
58%
1213D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)