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

17606번 - Integral Points 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 (추가 시간 없음) 512 MB88464153.247%

문제

We say a set of points are concyclic if they all lie on the circumference of a circle. The task is: given an integer n, find a circle centered at (0, 0) such that there are at least n distinct concyclic integral points lying on it.

Note: Integral points are points with integral coordinates.

입력

The input is a line containing a positive integer n.

출력

Output n + 1 lines. The first line contains an integer r indicating the radius of the circle. Each of the following lines contains two integers x and y such that point (x, y) lies on the circle.

제한

  • 1 ≤ n ≤ 1000
  • This problem uses a special checker so you don’t have to output the minimum radius r.
  • Each token in your output cannot exceed 30 characters.
  • Every point in your output must be unique.
  • The size of your code must be no greater than 256 kilobytes.

예제 입력 1

1

예제 출력 1

100
100 0

예제 입력 2

7

예제 출력 2

5
5 0
0 5
-5 0
3 4
3 -4
-3 -4
-3 4

힌트

출처

ICPC > Regionals > Asia Pacific > Taiwan > Taiwan Online Programming Contest > TOPC 2019 I번

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

출처

대학교 대회

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

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