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

28232번 - Windcatchers 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB10017610.909%

문제

Yazd is the city of windcatchers. There are several famous and historical windcatchers in Yazd, including the windcatcher of Dowlatabad Garden, which is the tallest one in the world.

The new mayor of Yazd is going to celebrate the history of windcatchers. To this end, he has decided to construct a new highway in the city with the following properties:

  • The highway is composed of two ways of the same width.
  • The two ways are adjacent, with a straight line in common (which we call the middle line).
  • The highway must not pass through any windcatcher. However, windcatchers may lie on the boundary of the ways, including on the middle line.
  • To celebrate the windcatchers, the highway must have at least two windcatchers exactly on its middle line.

The mayor wants to construct a highway of maximum possible width satisfying all the above conditions. However, due to a large number of windcatchers in the city, finding the best place for such a highway is not an easy task. As such, the mayor has decided to hire you to find the best location for constructing the highway. To simplify things, each windcatcher is represented by a single point in the plane. Moreover, we may assume that the constructed highway has infinite length. An example of a highway of maximum width among a set of points (windcatchers) is illustrated in the above figure.

입력

The first line of input contains a positive integer n, indicating the number of windcatchers. The next n lines, each consists of a pair of integers, x and y, indicating the location of a windcatcher in the city. Note that line i + 1 contains the location of windcatcher i. For simplicity, we assume that each windcatcher is a point in two dimensions, and no two windcatchers lie on the same point. Moreover, we assume that there are at least three noncollinear windcatchers in the city. It is guaranteed that 3 ⩽ n ⩽ 4, 000 and 0 ⩽ x, y ⩽ 109.

출력

Print a float number indicating the width of a maximum-width highway satisfying all the required conditions. Your output will be considered correct if its absolute or relative error is at most 10−9.

제한

예제 입력 1

3
0 0
0 1
1 0

예제 출력 1

1

예제 입력 2

4
15 18
11 20
20 9
7 8

예제 출력 2

9.356972863938

힌트

출처

ICPC > Regionals > Asia West Continent > Iran > 2022 ICPC Asia Tehran Regional Contest I번

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

출처

대학교 대회

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

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