Logo
(追記) (追記ここまで)

11860번 - Squares 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 256 MB101201631.373%

문제

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.

제한

예제 입력 1

3
-35 45 -50 50
-15 35 -40 20
-40 30 -30 20

예제 출력 1

2175

힌트

출처

Olympiad > International Autumn Tournament in Informatics > 2015 > Group B (Juniors) 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /