Baltic Olympiad in Informatics: 2002 Day 1, Problem 3
There are given
Write a program which calculates the total area covered by triangles.
Constraints
Input Specification
The first line of input contains one positive integer
The next
Output Specification
Output one number with exactly one digit after the decimal point - the total area covered by triangles.
Sample Input
Copy
5
-5 -3 6
-1 -2 3
0 0 2
-2 2 1
-4 -1 2
Sample Output
Copy
24.5
Comments
Forest Area is a similar problem with higher constraints.