cf/mirror

Make All Equal

CF
2001A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
1
1
3
1 2 3
3
1 2 2
5
5 4 3 2 1
6
1 1 2 2 3 3
8
8 7 6 3 8 7 6 3
6
1 1 4 5 1 4
Output
0
2
1
4
4
6
3
2001A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)