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

17797번 - Dome Construction 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB88756987.342%

문제

The world’s largest indoor water park is built inside a hemispherical dome that was once used as an aircraft hangar. The park attracts more than 10 000 visitors per day and is big enough that it even has its own tropical micro-climate with clouds forming inside.

Management would like to expand business operations by opening another branch in the dome of your local cathedral. The micro-climate is a key selling point, so to really capitalise on the cathedral they asked you to expand the dome’s radius so that it contains at least a given number of clouds. A cloud is contained if its centre is on or inside the boundary of the dome.

You are a cloud engineer by trade, and hence a competent meteorologist. You already identified several potential clouds close by and plotted them in three dimensions relative to the centre of the current structure. In order to capture enough of them, how large do you need to make the radius of the dome?

입력

  • The first line contains the number of clouds you found, n, and the number that must be contained, k, respectively (1 ≤ k ≤ n ≤ 105).
  • The next n lines each contain three real numbers xi, yi, zi, the coordinates of the ith cloud relative to the centre of the dome (0 ≤ |xi|, |yi|, |zi| ≤ 106). Every cloud has a non-negative y-coordinate.

출력

Output the minimum radius of the dome required to enclose at least k points. Your answer must be accurate to an absolute or relative error of 10−6.

제한

예제 입력 1

5 3
-4 2 1
2.1 3 5
1.2 1 -1
-2.2 3 2
1 0 2.1

예제 출력 1

4.22374242

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > The UK & Ireland Programming Contest > UKIEPC 2019 D번

  • 문제를 만든 사람: Jim Grimmett
(追記) (追記ここまで)

출처

대학교 대회

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

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