#P2287. [HNOI2004] 最佳包裹
[HNOI2004] 最佳包裹
Description
Faqiang Company produces a kind of metal product made by connecting several straight metal bars, which are welded together at their intersection points. For aesthetic reasons, the product is to be wrapped with a layer of special material. To save costs, the company hopes to use the least amount of material (the waste from cutting scraps is ignored).
Write a program that, given the number of vertices of the product and the coordinates of all vertices, computes the minimal area of material needed to wrap the product. The result should be rounded to six decimal places.
Input Format
The input file consists of lines.
The first line contains an integer (), denoting the number of vertices.
From line to line , the -th line contains three real numbers , , , which are the coordinates of the -th vertex.
All vertices are guaranteed to be distinct.
Output Format
Output a single real number, rounded to six decimal places, which is the minimal area of material required to wrap one such product.
4
0 0 0
1 0 0
0 1 0
0 0 1
2.366025
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号