Problems
Farmer John is hosting a new bovine grass-eating convention at his farm!
Cows from all over the world are arriving at the local airport to attend the convention and eat grass. Specifically, there are
It is guaranteed that
Input
The first line contains three space separated integers
Output
Please write one line containing the optimal minimum maximum waiting time for any one arriving cow.
Example
6 3 2
1 1 10 14 4 3
4
If the two cows arriving at time 1 go in one bus, cows arriving at times 3 and 4 in the second, and cows arriving at times 10 and 14 in the third, the longest time a cow has to wait is 4 time units (the cow arriving at time 10 waits from time 10 to time 14).