Balkan Olympiad in Informatics: 2011 Day 1, Problem 1
We will consider a convex polygon with
Input Specification
The first line of input contains the number
Output Specification
You should output a single number
Constraints
- The points are given in trigonometric (anti-clockwise) order.
- For
of tests - For
of tests
Sample Input 1
Copy
4
0 0
1 0
1 1
0 1
Sample Output 1
Copy
0.293
Explanation for Sample Output 1
The maximum radius is obtained when the centers of the two circles are placed on one of the square's diagonals.
The radius can be calculated exactly and it is
Sample Input 2
Copy
4
0 0
3 0
3 1
0 1
Sample Output 2
Copy
0.500
Sample Input 3
Copy
6
0 0
8 0
8 6
4 8
2 8
0 4
Sample Output 3
Copy
2.189
Comments