406103: GYM102267 H Circle of Polygon

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

H. Circle of Polygontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

A $$$\textbf{circumscribed circle}$$$ of a polygon is the circle that passes through all the vertices of that polygon.

Let's assume we have a $$$\textbf{regular}$$$ polygon, we want to find the area of the circumscribed circle around this polygon. Given the number of vertices and the side length of the polygon, can you find the circle's area?

Input

The only line contains $$$2$$$ integers , $$$V(3 \le V \le 359)$$$ the number of vertices of the polygon and $$$S(1 \le S \le 10^9)$$$

Output

Find the area of the resulting circumscribed circle.Your answer will be considered correct if its absolute or relative error does not exceed $$$10^{-6}$$$.

Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if $$$\frac{|a-b|}{max(1,b)}\le 10^{-6}$$$.

ExampleInput
8 2
Output
21.452136491
Note

The octagon in the picture illustrates the first example.

加入题单

上一题 下一题 算法标签: