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

11701번 - Longest Lane 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB388741.176%

문제

Mr. KM, the mayor of KM city, decided to build a new elementary school. The site for the school has an awkward polygonal shape, which caused several problems. The most serious problem was that there was not enough space for a short distance racetrack. Your task is to help Mr. KM to calculate the maximum possible length for the racetrack that can be built in the site. The track can be considered as a straight line segment whose width can be ignored. The boundary of the site has a simple polygonal shape without self-intersection, and the track can touch the boundary. Note that the boundary might not be convex.

입력

The input consists of multiple test cases, followed by a line containing "0". Each test case has the following format. The first line contains an integer $N$ (3ドル \leq N \leq 100$). Each of the following $N$ lines contains two integers $x_i$ and $y_i$ ($-1,000 \leq x_i, y_i \leq 1,000$), which describe the coordinates of a vertex of the polygonal border of the site, in counterclockwise order.

출력

For each test case, print its case number and the maximum possible length of the track in a line. The answer should be given as a floating point number with an absolute error of at most 10ドル^{-6}$.

제한

예제 입력 1

4
0 0
10 0
10 10
0 10
3
0 0
1 0
0 1
0

예제 출력 1

Case 1: 14.142135624
Case 2: 1.41421356

힌트

출처

Contest > ICPC Japanese Alumni Group > JAG Spring Contest > JAG Spring Contest 2012 F번

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

출처

대학교 대회

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

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