#P2533. [AHOI2012] 信号塔

    ID: 1547 远端评测题 1000ms 128MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>计算几何2012各省省选安徽随机贪心,随机化

[AHOI2012] 信号塔

Description

During field training, to ensure the safety of every participant, it is very important to monitor and collect information about the surrounding environment and team members in real time. The training team deploys NN small sensors around the training site to collect and transmit information. These sensors communicate only with a signal tower set up within the training area. The signal tower’s reception coverage is circular; it can receive signals from all NN sensors distributed in the area, including those on the circle’s boundary. The tower’s power is proportional to the radius of its reception range. Because this is field training and only pre-stored battery equipment can be used, under the condition that all sensor information can be collected, the tower’s power should be minimized. Xiaolong has helped the instructor determine a placement scheme that both collects all NN sensors’ signals and minimizes the tower’s power. Students, can you determine how large the tower’s signal collection radius should be, and where it should be placed?

Input Format

There are N+1N + 1 lines. The first line contains a positive integer NN, the number of sensors. The next NN lines each contain two real numbers separated by a space, which are the coordinates xix_i and yiy_i of the ii-th sensor (xi,yix_i, y_i are within the range of double precision).

Output Format

One line containing three real numbers separated by spaces: the coordinates of the signal tower and the tower’s coverage radius.

5
1.200 1.200
2.400 2.400
3.800 4.500
2.500 3.100
3.900 1.300
2.50 2.85 2.10

Hint

  • Determine that a sensor lies on the boundary if the absolute value of the difference between its distance to the circle center and the tower’s reception radius is less than 10610^{-6}. Keep the final result to 22 decimal places.
  • Constraints:
    • For 30%30\% of the testdata, 1N1041 \le N \le 10^4.
    • For 70%70\% of the testdata, 1N2×1041 \le N \le 2 \times 10^4.
    • For 100%100\% of the testdata, 1N1061 \le N \le 10^6.
  • This problem contains hack testdata and is scored as 00 points.

Translated by ChatGPT 5