Pro.ID10097 TitleRadio Coverage Title链接http://10.20.2.8/oj/exercise/problem?problem_id=10097 AC1 Submit1 Ratio100.00% 时间&空间限制描述
Your task is to select a subset of sites for relay stations so that:
输入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. 输出Description
Your task is to select a subset of sites for relay stations so that:
Input 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 Output should contain a single real number --- the maximal coverage area with the absolute error less than 10-2. Sample Input 1 0 0 10 Sample Output 505.4816 Source 样例输入1 0 0 10 样例输出505.4816 作者 |