logo AlgoBeat OnlineJudge
登录 注册

#215255. [ICPC 2024 LAC] Insects, Mathematics, Accuracy, and Efficiency

内存限制:1024 MiB 时间限制:500 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Bog has three passions in life: insects, mathematics, accuracy, and efficiency. His last passion led him to wanting to merge the first two, so Bog decided to adopt a differential grasshopper, an adorable little green guy that he named Dydx.

In order to keep Dydx happy, Bog made him a little lair. He bought a sprinkler that could water any plant within a circle with radius , and planted crops within this circle.

Dydx really liked his new home! But Bog realized that the grasshopper would only stay within the area defined by the smallest convex polygon that encloses all crops. Now he regrets not having spread the crops out more. Fortunately, Bog managed to find one last crop he hadn’t planted yet. Bog wants your help to maximize the area Dydx can inhabit by planting his last crop within the sprinkler’s range.

输入格式

The first line contains two integers and (), indicating respectively the number of planted crops and the radius of the circle defined by the sprinkler. Crops are represented as points in the two-dimensional plane, where are the coordinates of the sprinkler.

Each of the next lines describes a crop with two integers and , indicating that the crop is planted at coordinates . The Euclidean distance from to is at most . No two crops have the same location.

输出格式

Output a single line with the maximum area of the region Dydx can inhabit after planting one more crop within the range of the sprinkler. The output must have an absolute or relative error of at most . Notice that the added crop does not need to have integer coordinates.

样例

样例输入 1

4 1000
-1000 0
0 0
1000 0
0 -1000

样例输出 1

2000000

样例输入 2

2 100
17 7
19 90

样例输出 2

4849.704644437563740570981348

样例输入 3

1 100
13 37

样例输出 3

0.0