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

13855번 - Three Squares 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB142453834.545%

문제

There are N distinct points located at integer coordinates in the plane. We want to place three identical axis-parallel squares on the plane, such that each of the N points is located inside (or on the borders of) at least one of the squares. What is the minimum possible side length of the squares?

입력

The first line contains the integer number N (1 ≤ N ≤ 100000). The next N lines contain two space-separated integers each, the x and y coordinates of one of the points (0 ≤ x, y ≤ 109 ).

출력

Print the minimum possible side length of the 3 squares, such that all the N points are covered by them.

제한

예제 입력 1

5
0 0
10 0
0 1
2 2
9 3

예제 출력 1

2

힌트

You can place the 3 squares with their bottom-left corners at the following coordinates: (0,0), (8,0), (7,1).

출처

ICPC > Regionals > Europe > Southeastern European Regional Contest > SEERC 2016 A번

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

출처

대학교 대회

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

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