ICPC 2009 World Final Problem D - Conduit Packing

zhaoke7891 2009-04-26 10:40:33
大家来讨论一下今年ICPC 2009总决赛的Problem D - Conduit Packing
题目给定四个圆的直径,求这四个圆外包络圆的最小直径。
题目如下:

Allied Conduit Manufacturing (ACM) makes metal conduit tubes with round cross-sections that enclose many different types of wires. The circular cross-section of a wire can have a diameter up to 20 millimeters (20000 micrometers). ACM needs a program to compute the minimum diameter of a conduit that can hold 4 wires with specified diameters.

Sample Input
10000 10000 10000 10000
10000 10000 10000 3000
12000 12000 3600 3600
0

Sample Input
Case 1: 24142
Case 2: 21547
Case 3: 24000

实际上是圆形packing问题的简化,有什么好的方法大家来讨论一下。
...全文
190 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zlxia0013 2010-02-05
  • 打赏
  • 举报
回复
最大三个互相紧挨着, 第四个如果能够塞进去就OK.
如果塞不进,那就是中空的...写个方程,解一下最小值

33,009

社区成员

发帖
与我相关
我的任务
社区描述
数据结构与算法相关内容讨论专区
社区管理员
  • 数据结构与算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧