#P2698. [USACO12MAR] Flowerpot S
[USACO12MAR] Flowerpot S
Problem Description
Farmer John has been having trouble making his plants grow, and needs your help to water them properly. You are given the locations of raindrops in the 2D plane, where represents vertical height of the drop, and represents its location over a 1D number line:

Each drop falls downward (towards the axis) at a rate of unit per second. You would like to place Farmer John's flowerpot of width somewhere along the axis so that the difference in time between the first raindrop to hit the flowerpot and the last raindrop to hit the flowerpot is at least some amount (so that the flowers in the pot receive plenty of water). A drop of water that lands just on the edge of the flowerpot counts as hitting the flowerpot.
Given the value of and the locations of the raindrops, please compute the minimum possible value of .
4 5
6 3
2 4
4 10
12 15
2