#P6719. [BalkanOI 2011] 2circles
[BalkanOI 2011] 2circles
Description
In the Cartesian coordinate plane, there is a convex polygon with points. Now you want to place two circles with radius inside it, such that the two circles do not overlap. Find the maximum possible value of .
Input Format
The first line contains an integer .
The next lines each contain two integers , representing the coordinates of the -th point of the polygon.
Output Format
Output a single real number .
4
0 0
1 0
1 1
0 1
0.293
4
0 0
3 0
3 1
0 1
0.500
6
0 0
8 0
8 6
4 8
2 8
0 4
2.189
Hint
Explanation for Sample 1
When the two circle centers are placed on the diagonal of the square, the radius is maximized, as shown in the figure:

The radius is .
SPJ Scoring Criteria
If the error between your answer and the standard answer does not exceed , you will get AC.
Constraints and Limits
- For of the testdata, is guaranteed.
- For of the testdata, is guaranteed.
- For of the testdata, , , and the points are given in counterclockwise order.
Note
This problem is translated from Balkan Olympiad in Informatics 2011 Day 1 T1 2circles。
Translated by ChatGPT 5
京公网安备 11011102002149号