#P4406. [CQOI2005] 三角形面积并
[CQOI2005] 三角形面积并
Description
Given triangles, compute the area of their union.
Input Format
The first line contains (), the number of triangles. Each of the next lines contains real numbers , , , , , , representing the coordinates of the triangle's vertices. All coordinates are real numbers not exceeding , and the input numbers are given with decimal place.
Output Format
Output the union area , to two decimal places.
2
0.0 0.0 2.0 0.0 1.0 1.0
1.0 0.0 3.0 0.0 2.0 1.0
1.75
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号