-->
当前位置:首页 > 题库

PROGRAMMING:Computational geometry

Luz5年前 (2021-05-10)题库434
Bear_ 2 because of proficient in various algorithms, so often have fans to consult bear_ 2. On this day, another girl came to ask questions. This is a question about computational geometry, bear_ I think it's very simple, and soon I will teach my fans. Bear_ Now I want to know if you can solve the problem. Given a parallelepiped in a three-dimensional coordinate system, can you calculate its volume?
###Input format:
The input is divided into 4 lines, and each line gives a vertex coordinate (x, y, z) of the parallelepiped (- 1000 < = x, y, Z < = 1000). Ensure that the four input points are not coplanar.
###Output format:
Outputs the volume of the parallelepiped with three decimal places.
###Input example:
Here is a set of inputs. For example:
```in
0 0 0
2 0 0
0 2 0
2 0 1
```
###Output example:
The corresponding output is given here. For example:
```out
four
```
![ 1-510-png_ 6_ 0_ 0_ 417_ 270_ 90_ 92_ 892.979_ 1262.879-499-0-0-499.png](~/b0b61aaf-5625-46de-af84-5c3325b77a84.png)







answer:If there is no answer, please comment