Limits 1s, 512 MB

Given a side of the largest regular hexagon that is inscribed in a circle. Find the area inside the circle excluding the hexagon.

A Regular hexagon is a hexagon with equal sides. In the above picture side AB = BC = CD = DE = EF = FA

Note that, Value of π (PI) = acos(-1)).

Input

The first line of the input consists of one integer T (1 <= T <= 100). Then T lines will follow. Each line will consist only one integer A (1 <= A <= 10000), the length of a side of the largest regular hexagon that can be inscribed in a circle.

Output

The output consists of only one value, the area inside the circle excluding the hexagon. Print the answer up to 5 decimal places.

Sample

InputOutput
5
1
10
100
1000
10000
0.54352
54.35164
5435.16442
543516.44224
54351644.22365

Submit

Login to submit.

Statistics

97% Solution Ratio
YouKnowWhoEarliest, Dec '20
YouKnowWhoFastest, 0.0s
edge555Lightest, 0 B
bokaifShortest, 79B
Toph uses cookies. By continuing you agree to our Cookie Policy.