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

6839번 - Landing 스페셜 저지다국어

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

문제

Keep watching the skies! Alien spacecraft are due to land any day now to share all of their advanced programming secrets with us.

In preparation for this day, you’ve been tasked with preparing a landing pad for our visitors in a given field. Unfortunately, due to environmental considerations, you will not be permitted to remove any of the trees which currently exist on the field. These trees are of immense scientific interest, since they have zero radius and only grow at points with integer co-ordinates. However, this could be a blessing in disguise. For security reasons, the landing pad must be in contact with at least three trees. Security cameras will be placed at the tops of these trees.

Alien spacecraft are perfectly circular craft of various sizes, so the landing pad will also be circular. Since it would be polite to warn potential visitors ahead of time if their spacecraft is too large for our landing pad, you must now determine the size of the largest circular region that we can place on the field which contacts at least three trees, but does not contain any trees within.

입력

The first line of input will consist of the number n of trees (3 ≤ n ≤ 100000). The next n lines will each consist of a pair of integers x and y (−10000 ≤ x, y ≤ 10000), separated by a space, giving the co-ordinates of a tree. You may assume that no two trees are at the same co-ordinate.

출력

Output the radius of the largest possible landing pad. If the correct answer is R, you should output any number a such that

R/(1 + 10−4) < a < R(1 + 10−4)

The above calculation is used to define an acceptable range or tolerance for the answer you find. You may also assume that R < 109 . You may assume there exists at least one landing pad.

제한

예제 입력 1

4
1 1
1 -1
-1 -1
-1 1

예제 출력 1

1.41421356

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2008 > CCO 2008 6번

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

출처

대학교 대회

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

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