Baltic Olympiad in Informatics: 2012 Day 1, Problem 2
The well-known mobile network operator Totalphone has set up a number of new base transceiver stations in order to cover a newly-built highway with its network. As always the programmers of Totalphone have been sloppy; as a result, the transmission power cannot be set up individually for the stations, but one can only set the transmission power to a fixed common value for all the stations. In order to minimize power consumption, the company wants to know the maximal distance of a point on the highway to the nearest base transceiver station.
Constraints
Subtask 1 [25%]
Subtask 2 [25%]
Subtask 3 [50%]
No additional constraints.
Input Specification
The first line of input contains two space-separated integers and representing the number of base transceiver stations and the length of the highway, respectively.
lines follow, each containing a pair of integers and , which describes the coordinates of a base transceiver station. All points are distinct. Coordinates are sorted in the non-decreasing order with respect to coordinates. If two values of are the same, then coordinates are sorted with respect to coordinates in increasing order.
The highway is a straight line ranging from to .
Output Specification
The only line of output should contain a single number - the maximal distance of a point on the highway to the nearest base transceiver station. Your output will be regarded as correct if it is within an absolute error of of the correct answer.
Sample Input
2 10
0 0
11 1
Sample Output
5.545455
Comments