Write a function
long long maxmin(const vector<long long>& V);
that returns
For instance, the answer for is 8, corresponding to the numbers 9 and 4, which are at distance 2. As another example, the answer for a vector with eleven is .
@V@ has between 2 and numbers, all between 0 and .
The expected solution has cost , with a small constant.
You only need to submit the required procedure; your main program will be ignored.