#P2333. [SCOI2006] 一孔之见
[SCOI2006] 一孔之见
Description
Looking at a convex polygon through a circular hole, to make the visible area at least , what is the minimal required radius of the hole?
Assume the hole's center is fixed at , and lies strictly inside the polygon (not outside or on its boundary).
Input Format
The first line contains an integer and a real number (with two decimal places), representing the number of vertices of the convex polygon and the area that must be visible. It is guaranteed that does not exceed the area of the convex polygon.
Each of the following lines contains two real numbers (with six decimal places), representing the coordinates of each vertex. The vertices are given in either counterclockwise or clockwise order.
Output Format
Output a real number , with two decimal places, representing the minimal radius of the hole.
3 1.60
-1 -1
1 -1
0 1
0.93
Hint
Constraints:
- For of the testdata: , the input convex polygon is regular, and its center is at .
- For of the testdata: .
Translated by ChatGPT 5
京公网安备 11011102002149号