荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: westship (" "), 信区: ACMICPC
标  题: 4:Quoit Design
发信站: 荔园晨风BBS站 (Sat May 22 14:01:27 2004)

Have you ever played quoit in a playground? Quoit is a game in which flat ring
s are pitched at some toys, with all the toys encircled awarded.
In the field of Cyberground, the position of each toy is fixed, and the ring i
s carefully designed so it can only encircle one toy at a time. On the other h
and, to make the game look more attractive, the ring is designed to have the l
argest radius. Given a configuration of the field, you are supposed to find th
e radius of such a ring.

Assume that all the toys are points on a plane. A point is encircled by the ri
ng if the distance between the point and the center of the ring is strictly le
ss than the radius of the ring. If two toys are placed at the same point, the
radius of the ring is considered to be 0.


Input

The input consists of several test cases. For each case, the first line contai
ns an integer N (2 <= N <= 100,000), the total number of toys in the field. Th
en N lines follow, each contains a pair of (x, y) which are the coordinates of
 a toy. The input is terminated by N = 0.


Output

For each test case, print in one line the radius of the ring required by the C
yberground manager, accurate up to 2 decimal places.


Sample Input

2
0 0
1 1
2
1 1
1 1
3
-1.5 0
0 0
0 1.5
0


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店