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
The highway is a straight line ranging from
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
Sample Input
2 10
0 0
11 1
Sample Output
5.545455
Comments