当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

2382:Radio Coverage

Special Judge 特殊评判
题目描述
Radio station 'ACM Rock' is broadcasting over the circular area with center in point (x0, y0) and radius R. In order to increase the auditorium, it were suggested to build several relay stations. N locations were selected as candidate sites for relay stations. Relay station placed in i-th location will cover a circular area with center in point (xi, yi) and radius ri, where center lies inside the area covered by the base station, (x0 - xi)2 + (y0 - yi)2 ≤ R2.

Your task is to select a subset of sites for relay stations so that:
  1. the covered areas for relays do not intersect (but may touch) one another,
  2. the total area covered by base station and all relays is maximum possible.
输入解释
Input contains integer number N followed by real numbers x0 y0 R, followed by N triples of real numbers xi yi ri.
1 ≤ N ≤ 10, 0 ≤ xi, yi, x0, y0 ≤ 1000, 1 ≤ ri ≤ R ≤ 1000.
输出解释
Output should contain a single real number -- the maximal coverage area with the absolute error less than 10−2.
输入样例
1 0 0 10
10 0 10
输出样例
505.4816

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-2382

最后修改于 2020-10-29T06:31:06+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 65536