#P7270. [BalticOI 2002] Triangles (Day1)
[BalticOI 2002] Triangles (Day1)
Description
You are given isosceles right triangles. Each triangle is generated from a point by extending two perpendicular legs of length upwards and to the right.
Find the total area covered by these triangles.
Input Format
The first line contains an integer , the number of triangles.
The next lines each contain three integers describing one triangle.
Output Format
Output one real number, the answer.
Keep only one digit after the decimal point.
5
-5 -3 6
-1 -2 3
0 0 2
-2 2 1
-4 -1 2
24.5
Hint
Sample Explanation
For sample , the triangles are as follows:

Constraints
For of the testdata, , , .
Note
Translated from BalticOI 2002 Day1 C Triangles.
Translated by ChatGPT 5
京公网安备 11011102002149号