#P4724. 【模板】三维凸包

    ID: 5434 远端评测题 1000ms 125MiB 尝试: 0 已通过: 0 显示难度NOI/NOI+/CTS 上传者: 标签>计算几何三维计算几何

【模板】三维凸包

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