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

17917번 - Mirror, Mirror... 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB7812912.676%

문제

Mirror, mirror, on the wall, which mirror symmetric subset of these points is the largest of them all?

The set $P$ consists of $N$ points. We say that a subset $S \subseteq P$ is \emph{mirror symmetric} if there exists a line $\ell$ such that for each point $p \in S,ドル the reflection of $p$ across $\ell$ is also in $S$.

Given the set $P,ドル what is the largest size of any mirror symmetric subset?

입력

The first line of the input contains $N,ドル the number of points. The next $N$ lines each consist of two integers $x_i, y_i$ ($-30,000円 \le x_i, y_i \le 30,000円$), the coordinates of each point.

There will be no duplicate points in the input.

출력

Output a single integer -- the largest size of a mirror symmetric subset.

제한

  • 1ドル \leq N \leq 1500$

예제 입력 1

7
2 4
5 5
5 4
4 2
3 0
0 3
0 1

예제 출력 1

5

힌트

출처

Contest > Swedish Coding Cup > Swedish Coding Cup Finals 2019 E번

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

출처

대학교 대회

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

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