HDU 4273(计算几何+凸包重心)

这篇博客介绍了NASA在外太空救援任务中遇到的问题,需要确定位于凸多面体中心的控制室内是否有人。由于飞船门被卡住,只能通过生命感应器在外部探测。内容涉及如何确定能覆盖凸多面体顶点的最小感应半径,确保能检测到控制中心的生命迹象。文章提供了多组测试数据,并要求输出精确到0.001的最小感应半径。
摘要由CSDN通过智能技术生成

问题描述:

I work at NASA outer space rescue team which needs much courage and patient. In daily life, I always receive a lot of mission, and I must complete it right now. 
Today, team leader announced me that there is a huge spaceship dropping anchor in the out space, and we should reach there for rescue. As a working principle, at first, we should check whether there are persons living in the spaceship. So we carry a kind of machine called life sensor which can sense the life phenomenon when the distance between the machine and the living is not farther than the sense radius. 
I have read the designing paper of the spaceship in advance. It has a form of a convex polyhedron, and we can assume it is isodense. For best control, control center of the whole ship is located at the center of the mass. It is sure that if someone is still alive, he will stay at the control center. 
It's unfortunately that I find the door is stocked when I try to enter into the spaceship, so I can only sense the living out of the space ship. Now I have opened the machine and it's time to set the sense radius of it. I wonder the minimal radius of the machine which can allowe me to check whether there are persons living in the spaceship. 

Input

There are multiple test cases. 
The first line contains an integer n indicating the number of vertices of the polyhedron. (4 <= n <= 100) 
Each of the next n lines contains three integers xi, yi, zi, the coordinates of the polyhedron vertices (-10,000 <= xi, yi, zi <= 10,000). 
It guaranteed that the given points are vertices of the convex polyhedron, and the polyhedron is non-degenerate. 

Output

For each test case, output a float number indicating the minimal radius of the machine. Your answer should accurate up to 0.001. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值