#P1222. 三角形
三角形
Description
Given isosceles right triangles on the plane. Each triangle is described by three integers . The three vertices of a triangle are , , .
Your task is to compute the total area covered by these triangles.
Input Format
The first line contains an integer .
Each of the next lines describes a triangle with three integers .
Output Format
Output a single real number with one digit after the decimal point, representing the total area.
5
-5 -3 6
-1 -2 3
0 0 2
-2 2 1
-4 -1 2
24.5
Hint
Sample explanation:

Constraints: , , , .
Translated by ChatGPT 5
京公网安备 11011102002149号