Minimizing Difference
1244E2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 53 1 7 5
Output
2
Sample 2of 3
Input
3 10100 100 100
Output
0
Sample 3of 3
Input
10 94 5 5 7 5 4 5 2 4 3
Output
1
58%
1244E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)