시간 제한메모리 제한제출정답맞힌 사람정답 비율
7 초 1024 MB16719117.190%

문제

You are the last vestige of hope in a world overrun by penguins. You are going to set up a sonic noise emitter array to keep the deranged beasts away from your camp. You have the perfect location to do so. There is already a fence set up to help keep out the beasts while building your weapon. The fence has been constructed by joining a series of rods embedded in the ground with straight sections of reinforced titanium sheets. Luckily the fence’s interior angles between the sheets of titanium are each less than 180 degrees. You cannot adjust the location of the fence’s rods or the titanium sheets, but the fence’s current location should hopefully suffice for the task at hand.

To complete the sonic noise emitter array, you need to build two towers and there is a minimum distance required between these two towers. You don’t want the penguins to interfere in your construction. To utilize the fence as much as possible, the towers need to be as far from the titanium sheets as possible while inside the fenced area.

Given the location of the rods of the fence and the minimum distance required between the two towers, determine the maximum possible distance the towers can be from their closest titanium sheets.

입력

The first input line contains two integers, N and D (3 ≤ N ≤ 105 and 1 ≤ D ≤ 106), representing the number of rods that comprise the fence and the minimum distance required between the two towers. Each of the following N lines contains two integers, the ith of which are xi and yi (-107 ≤ xi ≤ 107 and -107 ≤ yi ≤ 107) representing the x and y coordinate of the i th fence rod. The rod locations are given in a clockwise order. It is guaranteed that both towers can exist in the interior of the fenced region.

출력

Print on a single line by itself a single positive number: the furthest possible distance between the closest titanium sheet and towers. Answers within 10-6 absolute or relative of the expected answers will be considered correct.

예제 입력 1

3 1
0 0
0 3
3 0

예제 출력 1

0.6715728752538098

예제 입력 2

4 1
0 0
0 5
4 5
4 0

예제 출력 2

1.9999999999999998