Codeforces Round 109 (Div. 1)
E
Martian Colony
Codeforces
3000
原题
← D→
翻译中…

The first ship with the Earth settlers landed on Mars. The colonists managed to build $*n*$ necessary structures on the surface of the planet (which can be regarded as a plane, and the construction can be regarded as points on it). But one day the scanners recorded suspicious activity on the outskirts of the colony. It was decided to use the protective force field generating system to protect the colony against possible trouble.

翻译中…

The system works as follows: the surface contains a number of generators of the field (they can also be considered as points). The active range of each generator is a circle of radius $*r*$ centered at the location of the generator (the boundary of the circle is also included in the range). After the system is activated, it stretches the protective force field only over the part of the surface, which is within the area of all generators' activity. That is, the protected part is the intersection of the generators' active ranges.

翻译中…

The number of generators available to the colonists is not limited, but the system of field generation consumes a lot of energy. More precisely, the energy consumption does not depend on the number of generators, but it is directly proportional to the area, which is protected by the field. Also, it is necessary that all the existing buildings are located within the protected area.

翻译中…

Determine the smallest possible area of the protected part of the surface containing all the buildings.

翻译中…

Input

翻译中…

The first line contains two integers $*n*$ and $*r*$ ($1 ≤ *n* ≤ 10^{5}$, $1 ≤ *r* ≤ 50000$) — the number of buildings and the active ranges of the generators, correspondingly.

翻译中…

Next $*n*$ lines contains the buildings' coordinates. The $*i* + 1$-th ($1 ≤ *i* ≤ *n*$) line contains two real numbers with at most three digits after the decimal point $*x*_{*i*}$ and $*y*_{*i*}$ ($|*x*_{*i*}|, |*y*_{*i*}| ≤ 50000$) — coordinates of the $*i*$-th building. It is guaranteed that no two buildings are located at the same point, and no two different buildings are located closer than $1$.

翻译中…

It is guaranteed that there exists a circle with radius $*r*$ that contains all the buildings.

翻译中…

Output

翻译中…

Print the single real number — the minimum area of the protected part containing all the buildings. The answer is accepted if absolute or relative error doesn't exceed $10^{ - 4}$.

翻译中…

Note

翻译中…

In the first sample the given radius equals the radius of the circle circumscribed around the given points. That's why the circle that corresponds to it is the sought area. The answer is $25π$.

翻译中…

In the second sample the area nearly coincides with the square which has vertexes in the given points.

翻译中…

The area for the third sample is shown on the picture below.

翻译中…

image

翻译中…

样例

Input #1
3 5
0.00 0.000
0.0 8.00
6 8.00
Output #1
78.5398163397
InputCopy OutputCopy
Input #2
4 1000
0.0 0.0
0 2.00
2.00 2
2.0 0.00
Output #2
4.0026666140
InputCopy OutputCopy
Input #3
4 5
3.00 0.0
-3 0.00
0.000 1
0.0 -1.00
Output #3
8.1750554397
InputCopy OutputCopy
题目信息
题号
154E
时间限制
4 s
内存限制
256 MB
标签
计算几何

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。