Squares
Hard
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
We are given n squares in the plane, defined as their center and one of their vertices. Write a program squares to calculate the area covered by these squares.
Input
The first line holds the integer n (0 < n < 10) - the number of squares. Each of the next n lines holds 4 integers, separated by a space, each describing one of the squares. Each square is described by the coordinates of its center and the coordinates of one of its vertices. All coordinates are integers in the range [-50, 50].
Output
The program should print the area covered by the squares, rounded to the nearest integer number.
Examples
Input #1
Answer #1
Submissions 113
Acceptance rate 3%