P15440 [HackerEarth] My dear friend Sangtani is very excited with his holiday plans and was thinking about what to pack in his bag. As he likes namkeen very much he decided to pack some for the travel. For t
普及-
题目描述

My dear friend Sangtani is very excited with his holiday plans and was thinking about what to pack in his bag. As he likes namkeen very much he decided to pack some for the travel. For this he decided to pack namkeen in cylindrical containers. So he thought of buying some cans from the market. However he wanted the cans to have smallest surface area and greater volume.
As he is busy with Major preparation, he has asked you to help him. Your job is to calculate minimum surface area for a given volume.

Note: Print Exactly nine digits after decimal point.

Input:

First Line contain T, number of test cases.

Next T lines follow
Each line containing an integer, volume of the can.

Output:

Contains exactly T lines
Each line containing required surface area.

Constraint:

0 < Volume < 1000

Note:
Volume of cylinder is V = (h * PI * R^2)
Surface Area of a cylinder is S = (2 * PI * R * (R + H))
PI is (2*acos(0.0)).

Sample Input:

50

Sample Output:

75.132507

SAMPLE INPUT
1
50

SAMPLE OUTPUT
75.132506983

输入格式

见题面

输出格式

见题面

样例输入
42 979 501 73 397 121 746 748 546 35 477 809 677 823 89 66 747 523 305 466 483 143 110 625 884 797 329 10 58 990 849 651 497 241 689 9 451 731 101 694 693 333 225
样例输出
405.101731670 440.575263851 177.133319220 376.102796119 446.758902328 549.513971055 208.411908582 315.863461876 162.472286989 189.952602943 367.546863421 408.975251078 237.493698469 438.918963423 229.538418510 279.625974025 214.384100100 249.183437591 149.256493552 320.730506778 342.193737323 516.413679740 241.980167313 139.867568426 120.059204110 514.884130233 292.969019226 152.789395389 477.459151111 63.663564192