#P3744. 李彬的几何
李彬的几何
Description
has vertices . The coordinates of vertex in the 2D plane are . The vertices are given in clockwise order.
Li Bin may choose a real number , then move each vertex by at most units. Now he wants to know the minimal value of that makes this convex polygon no longer convex.
Input Format
The first line contains integer .
The next lines each describe a vertex with two integers, the and of that vertex. The vertices are given in clockwise order and form a strictly convex polygon.
Output Format
Output a real number , representing the minimal that makes this polygon non-convex.
Let your answer be and the standard answer be . You are correct if and only if .
4
0 0
0 1
1 1
1 0
0.3535533906
6
5 0
10 0
12 -4
10 -8
5 -8
3 -4
1.0000000000
Hint
Constraints: For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号