| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 (추가 시간 없음) | 512 MB | 16 | 7 | 5 | 38.462% |
Do you like problems with short and clear statement? You are given three balls in three-dimensional space. The balls do not intersect and have different radii. Find the volume of their convex hull.
The input consists of three lines, each line describes one ball.
Each line contains four integers $x_k$, $y_k$, $z_k$, $r_k$: the coordinates of the center of the $k$-th ball and its radius ($1 \leq r_k \leq 100$, $0 \leq x_k, y_k, z_k \leq 100$).
It is guaranteed that the balls do not intersect and do not touch. In addition, $r_1 < r_2 < r_3$.
Print the volume of the convex hull. The output will be accepted if it has absolute or relative error at most $10^{-7}$.
10 0 0 1 0 10 0 2 0 0 10 3
691.832383333484585819