2385. Hard Evidence

单点时限: 5.0 sec

内存限制: 256 MB

The young reporter Janne is planning to take a photo of a secret government installation. He needs to obtain evidence of the many serious crimes against good sense that are being committed there, so as to create a scandal and possibly win a Pulitzer. Unfortunately, the base is surrounded by a high fence with high voltage wires running around. Janne does not want to risk being electrocuted, so he wants to take a photo from outside the fence.

He can bring a tripod as high as the fence to take a photo, so if he wants he can stand right beside the fence and take his picture. The secret installation is a convex polygon. The fence has a form of a circle. Of course Janne wants to make a photo with maximal possible detail level. The detail level of the photo depends on the view angle of the base at the point from which the photo is taken. Therefore he wants to find a point to maximize this angle.

输入格式

The first line of the input file contains two integer numbers: $n$ and $r$ – the number of vertices of the polygon and the radius of the fence ($3 \le n \le 200$, $1 \le r \le 1000$ ). The following $n$ lines contain two real numbers each – the coordinates of the vertices of the polygon listed in counterclockwise order. It is guaranteed that all vertices of the polygon are strictly inside the fence circle, and that the polygon is convex. The center of the fence circle is located at the origin, $(0, 0)$.

输出格式

Output the maximal view angle a for the photo ($0 \le a < 2\pi$). Any answer with either absolute or relative error smaller than $10^{-6}$ is acceptable.

样例

Input
4 2
-1.0 -1.0
1.0 -1.0
1.0 1.0
-1.0 1.0
Output
1.5707963268

2 人解决,4 人已尝试。

2 份提交通过,共有 43 份提交。

9.3 EMB 奖励。

创建: 15 年,6 月前.

修改: 6 年,3 月前.

最后提交: 1 年,3 月前.

来源: NCPC 2008

题目标签