Total control
시간 제한1초메모리 제한1024 MB
볼록 다각형과 목표 넓이 S가 주어질 때, 다각형과 바깥쪽으로 폭 d만큼 확장한 영역의 넓이가 S 이상이 되는 최소 d를 구한다.
문제
ByteCity is the capital of Byteland. It can be described as a convex polygon with vertices, surrounded by walls.
The mayor of Bytecity decided to upgrade the weapons that the army of ByteCity is using. If new guns have a firing range () then the mayor of the city would consider all terrain inside the city and all terrain on the distance no further than from the city walls as loyal.
Pride of the mayor will be satisfied if loyal area will be at least . What is the minimum value of guns' firing range he need to buy for his army?
입력
In the first line you are given two integers and () --- number of vertices in city polygon and needed area of loyal terrain.
In each of the next lines you are given two integers and () --- coordinates of polygon vertices.
It is guaranteed that these points are vertices of convex polygon given in counterclockwise order.
출력
Output a single number --- minimum fire range of guns. Your answer considered will be correct if its absolute or relative error doesn't exceed .