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

1768번 - Center of symmetry 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB2351187850.323%

문제

Given is a set of n points with integer coordinates. Your task is to decide whether the set has a center of symmetry.

A set of points S has the center of symmetry if there exists a point s (not necessarily in S) such that for every point p in S there exists a point q in S such that p-s = s-q.

입력

The first line of input contains a number c giving the number of cases that follow. The first line of data for a single case contains number 1 ≤ n10000. The subsequent n lines contain two integer numbers each which are the x and y coordinates of a point. Every point is unique and we have that -10000000 ≤ x, y ≤ 10000000.

출력

For each set of input data print yes if the set of points has a center of symmetry and no otherwise.

제한

예제 입력 1

1
8
1 10
3 6
6 8
6 2
3 -4
1 0
-2 -2
-2 4

예제 출력 1

yes

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > Alberta Collegiate Programming Contest > ACPC 2003 E번

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

출처

대학교 대회

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

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