cf/mirror

Equalizing by Division (easy version)

CF
1213D11500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5 3
1 2 2 4 5
Output
1
Sample 2of 3
Input
5 3
1 2 3 4 5
Output
2
Sample 3of 3
Input
5 3
1 2 3 3 3
Output
0
1213D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)