EasyRating 1000
Closest Values
Print the minimum absolute difference between any two elements.
Input
n ≥ 2, then n integers.
Output
A number.
Sample 1
Input
4 4 2 1 3
Output
1
Sample 2
Input
2 10 -10
Output
20
Output appears heren ≥ 2, then n integers.
A number.
4 4 2 1 3
1
2 10 -10
20
Output appears here