Equalizing by Division (hard version)
1213D21600· expert2s256 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%
1213D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)