#P4586. [FJOI2015] 最小覆盖双圆问题
[FJOI2015] 最小覆盖双圆问题
Description
Given points on the plane , find two circles and with the same radius that cover all the given points, and the radius is as small as possible.

Design an algorithm to compute the minimal radius of the two covering circles and .
Input Format
The input contains multiple test cases.
For each case, the first line contains a positive integer (), indicating there are points on the plane.
Each of the next lines contains two real numbers and , with and .
The input ends with a line containing a single .
Output Format
For each test case, output the minimal radius of a circle that satisfies the requirement, keeping two decimal places.
3
0.00 0.00
1.00 0.00
0.00 4.00
10
0.00 0.00
0.00 3.00
1.00 6.00
2.00 2.00
3.00 5.00
5.00 3.00
6.00 3.00
9.00 5.00
10.00 5.00
11.00 3.00
0
0.50
3.05
Hint
For 100% of the testdata, , , and .
Translated by ChatGPT 5
京公网安备 11011102002149号