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

21842번 - Physical Distancing 스페셜 저지다국어

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

문제

To prevent the spread of Covid-19, people are asked to keep their distance from other people, who could be infected. Some experts recommend a distance of 2 metres, others 6 feet, and still others 1.5 metres. In some crowded settings, these recommended distances may not be possible. In any setting, maximizing the distance minimizes the risk of getting infected.

You need to walk down a crowded hallway in which other people are standing. Determine the maximum possible distance that you can maintain from all the other people while still being able to navigate from one end of the hallway to the other. (Assume that you and every other person is a point with zero area.)

입력

The first line contains three space-separated integers L, W, N, the length and width of the hallway and the number of people standing in it, with 0 < L, W ≤ 100 and 1 ≤ N ≤ 100. Each of these integers is between 0 and 100, inclusive. The following N lines each contain two integers X, Y , the coordinates of the location of each person, with 0 ≤ X ≤ L and 0 ≤ Y ≤ W.

출력

Output a single number, the maximum distance that you can maintain from any other person while navigating the length of the hallway. Your answer will be considered correct if the absolute or relative error to the judge’s answer is within 10−4.

제한

예제 입력 1

100 100 1
50 50

예제 출력 1

50.00000000000000

예제 입력 2

100 2 2
49 0
51 2

예제 출력 2

1.41421356237310

힌트

출처

Contest > Waterloo's local Programming Contests > 6 February, 2021 D번

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

출처

대학교 대회

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

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