Since Max loves setting lazy problems, he starts fiddling with an array of
Given an array, minimize
, where is the minimizing value and denotes the absolute difference between and .
Can you solve this lazy problem?
Constraints
Subtask 1 [40%]
Subtask 2 [60%]
Input Specification
The first line will contain
The second line will contain
Output Specification
Output the
Note: If there are multiple solutions, any will be accepted.
Sample Input
Copy
6
-5 4 9 -3 2 20
Sample Output
Copy
4
Note that
Comments