Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

How Cow!

By akhlak.ashik · Limits 1s, 512 MB

There is a cow in a village. She eats as much grass as she wants. Fortunately there is a large field in the village full of green and tasty grass. There was more grass than the cow could ever eat.

However, the cow was not very happy. Because her owner would always keep her tied to a pole in the middle of the field with a rope. The rope was rather short and so it limited how much grass the cow could reach.

Given the length of the rope, you have to determine the area of grass she can reach while being tied.

Input

The first line of the input file contains an integer T (1 ≤ T ≤ 100000​) representing the number of test cases. The following T lines each contains an integer L (1 ≤ L ≤ 100000​) representing the length of the rope in meters.

Output

For each test case, print the area the cow can cover to 3 decimal places.

Sample

InputOutput
2
7
578
153.938
1049558.294


Discussion
Statistics

92% Solution Ratio

rayhan50001Earliest, Jul '17

Tarik.amtolyFastest, 0.0s

Antor_SarkerLightest, 0 B

touhidurShortest, 64B

Submit

Login to submit