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

21182번 - Weird Flecks, But OK 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 1024 MB46623115446.951%

문제

An artist who wanted to create an installation where his works appeared to be floating in midair has cast a large cube of clear acrylic to serve as a base. Unfortunately, during the casting, some small flecks of dirt got into the mix, and now appear as a cluster of pinpoint flaws in the otherwise clear cube.

He wants to drill out the portion of the cube containing the flaws so that he can plug the removed volume with new, clear acrylic. He would prefer to do this in one drilling step. For stability's sake, the drill must enter the cube perpendicular to one of its faces.

Given the $(x,y,z)$ positions of the flaws, and treating the size of the flaws as negligible, what is the smallest diameter drill bit that can be used to remove the flaws in one operation??

The drill may enter any one of the cube faces, but must be positioned orthogonally to the face.

입력

The first line of input will contain an integer $N$ denoting the number of flaws. 3ドル \leq N \leq 5,000円$

This is followed by $N$ lines of input, each containing three real numbers in the range $-1,000円.0\ldots 1,000円.0,ドル denoting the $(x,y,z)$ coordinates of a single flaw. Each number will contain at most 6ドル$ digits following a decimal point. The decimal point may be omitted if all succeeding digits are zero.

출력

Print the diameter of the smallest drill bit that would remove all the flaws.

The answer is considered correct if the absolute or relative error is less than 10ドル^{-4}$

제한

예제 입력 1

3
1.0 0.0 1.4
-1.0 0.0 -1.4
0.0 1.0 -0.2

예제 출력 1

2.0000000000

예제 입력 2

5
1.4 1.0 0.0
-0.4 -1.0 0.0
-0.1 -0.25 -0.5
-1.2 0.0 0.9
0.2 0.5 0.5

예제 출력 2

2.0000000000

예제 입력 3

8
435.249 -494.71 -539.356
455.823 -507.454 -539.257
423.394 -520.682 -538.858
446.507 -501.953 -539.37
434.266 -503.664 -560.631
445.059 -549.71 -537.501
449.65 -506.637 -513.778
456.05 -499.715 -561.329

예제 출력 3

49.9998293198

힌트

출처

ICPC > Regionals > North America > North Central North America Regional > NCNA 2019 A번

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

출처

대학교 대회

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

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