cf/mirror

Make Them Equal

CF
1154B1200· pupil2s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 4
Input
6
1 4 4 7 4 1
Output
3
Sample 2of 4
Input
5
2 2 5 2 5
Output
3
Sample 3of 4
Input
4
1 3 3 7
Output
-1
Sample 4of 4
Input
2
2 8
Output
3
1154B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)