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

32022번 - Playing the Slots 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB20131368.421%

문제

The small nation of Erratica prides itself on defying conventions established by the more "boring" countries around the world. One of their more obvious distinctions lies in the design of their coinage. Believing that a person should be easily able to identify the value a coin in a pocket or change purse by touch alone, Erratica designs its coins as polygons. For stability, the coins are convex -- there are no notches cut into the coins. But the overall shapes themselves can be quite irregular.

Erratica Vending, the only manufacturer of vending machines in the nation, has been sent the design for a new coin to be issued. Their machines are designed so that coins enter through a slot into channel shaped as a rectangular prism with the slot being an open face of the prism. The channel is narrow because the coins are thin, but long enough to contain the entire coin. From the outside of the machine, the slot appears as a rectangular hole.

The company wants to know what would be the smallest slot size they will need so that the new coin can be slipped, after some rotation, into the slot.

입력

Input begins with a line containing $N,ドル the number of sides to the polygonal coin. 3ドル \leq N \leq 20$.

This is followed by $N$ lines, each containing two real numbers $x$ and $y,ドル the coordinates of a vertex of the polygon. 0ドル.0 \leq x, y \leq 100.0$

All $N$ vertices will be distinct, and the vertices will be presented in an order proceeding clockwise around the perimeter of the coin.

출력

Print a single line with a real number, to two decimal places precision, denoting the minimum slot size allowing the coin to pass through. Outputs will be accepted that are within $\pm 0.01$ of the judges' answer.

제한

예제 입력 1

3
0 0
0.71 3.54
4.21 4.21

예제 출력 1

2.00

예제 입력 2

6
10 12.5
10 17.5
15 20
20 17.5
20 12.5
15 10

예제 출력 2

8.94

힌트

출처

ICPC > Regionals > North America > Mid-Atlantic Regional > 2018 Mid-Atlantic USA Regional Contest G번

ICPC > Regionals > North America > Southern California Regional > 2018 Southern California Regional 5번

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

출처

대학교 대회

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

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