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

## 문제

Tomosynthesis is a medical imaging modality in which a 3D dataset is obtained algorithmically from a set of X-ray images taken in different directions within a limited range of angles. A larger range of angles normally gives a better reconstruction, but is more difficult to acquire. Arvid is working on a reconstruction algorithm for obtaining the 3D image, but so far it doesn’t seem to work when there are overlapping structures in any of the input images. The sample he will first reconstruct is a test object consisting of parallel equal-length cylinders of varying diameters that will be rotated around the axis of the cylinders. Figure D.1: To the left, a cross section of the test object of sample input 1. The upper projection is not acceptable since the two larger cylinders overlap. In the lower projection no cylinders overlap, so this direction and a range of angles around it are okay. To the right, an illustration of the same test object from the side.

Disregarding the fact that his algorithm will not work in practice, Arvid asks you for help. What is the largest range of angles in which the test object can be imaged without any cylinders overlapping in any of the images? An image is a plane projection of the structure perpendicular to the axes of the cylinders.

## 입력

The first line of input contains a single integer 2 ≤ N ≤ 100 denoting the number of cylinders that constitute the test object. This is followed by N rows, each containing three floating point numbers x, y and r, denoting the x- and y-coordinate of the center of a cylinder, and the radius of that cylinder, respectively. The coordinates are in the range −1 000 ≤ x, y ≤ 1 000 and the radius 0 < r ≤ 1 000. None of the cylinders touch or overlap

## 출력

Output a single number, the size in radians of the largest continuous range of projection directions over which no cylinders overlap. If no such angle exists output 0. Your answer should have an absolute error of at most 10−8.

## 예제 입력 1

3
-1 -1 0.5
1 -1 0.25
1 1 1


## 예제 출력 1

0.511268019


## 예제 입력 2

2
0 0 1
2 2 1


## 예제 출력 2

1.570796327


## 출처 • 문제를 만든 사람: Ulf Lundström
{"ft_lang_label":"__label__en","ft_lang_prob":0.90796924,"math_prob":0.9013161,"size":2140,"snap":"2022-05-2022-21","text_gpt3_token_len":545,"char_repetition_ratio":0.13717228,"word_repetition_ratio":0.0,"special_character_ratio":0.2537383,"punctuation_ratio":0.085253455,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9514245,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,4,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-16T18:38:26Z\",\"WARC-Record-ID\":\"<urn:uuid:3ec02589-cecf-4b6c-8e94-bfcfd3dc7b85>\",\"Content-Length\":\"27830\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ec3d7ebb-95fe-4c39-8032-10bd53cdca0d>\",\"WARC-Concurrent-To\":\"<urn:uuid:1f55f911-d2c1-4f21-b887-16f0aeadb3d6>\",\"WARC-IP-Address\":\"35.74.183.226\",\"WARC-Target-URI\":\"https://www.acmicpc.net/problem/11206\",\"WARC-Payload-Digest\":\"sha1:MX3GALZ4PBFYRYER7QZEOJHLDRIUHNCI\",\"WARC-Block-Digest\":\"sha1:CD5VZWLAKB7DQXLPMRHC5UINXOS7GXNE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662512229.26_warc_CC-MAIN-20220516172745-20220516202745-00089.warc.gz\"}"}