|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|2 초||256 MB||38||5||5||20.833%|
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.
The first line at the standard input holds the integer N – the number of squares (0 < N < 10). 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].
The program should print at the standard output a single line holding the result: the area covered by the squares, rounded to the nearest integer number.
3 -35 45 -50 50 -15 35 -40 20 -40 30 -30 20