luogu#P4724. 【模板】三维凸包

【模板】三维凸包

Problem Description

Given nn points in 3D space, find the surface area of their convex hull.

Input Format

The first line contains an integer nn, which is the number of points.

The next nn lines each contain three real numbers x,y,zx, y, z, describing the coordinates.

Output Format

Output the surface area of the convex hull, rounded to 33 decimal places.

4 
0 0 0
1 0 0
0 1 0
0 0 1
2.366

Hint

4n20004 \le n \le 2000

Translated by ChatGPT 5