ICPC 2009 World Final Problem D - Conduit Packing
大家来讨论一下今年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问题的简化,有什么好的方法大家来讨论一下。