Mirko and Slavko have built their own LED display. The display is
initially white. During each of the
Watching Mirko play with the electrodes, Slavko observed interesting shapes emerging on the screen. Mathematically inclined as he is, first thing that crossed his mind was how to calculate total area covered by black pixels. Help him by writing a program to do just that!
Input Specification
The first line of input contains an integer
Output Specification
The first and only line of output should contain the area covered by black pixels, rounded to one decimal place.
Sample Input 1
3
1 1 2
7 1 6
5 3 4
Sample Output 1
24.0
Sample Input 2
5
5 5 99
5 5 99
5 5 99
5 5 99
5 5 99
Sample Output 2
4900.5
Sample Input 3
4
5 5 99
5 5 99
5 5 99
5 5 99
Sample Output 3
0.0
Comments