P13998 [HackerEarth] It's Sid's girl friend's birthday today. He wanted to gift her something different. He knows that she loves spheres and Sid has a plan to impress her.
普及-
题目描述

It's Sid's girl friend's birthday today. He wanted to gift her something different. He knows that she loves spheres and Sid has a plan to impress her.

Sid takes N spheres. Unfortunately, he couldn't get them of equal size. He arranges all these spheres such that the centers of sphere are in a straight line. He now wants to pack this arrangement in a large sphere. He is now worried about, what the size of this bigger sphere should be. He is getting late to the party and so asks for your help.

You will be given surface area of N spheres. They are arranged in a straight line as mentioned above in the order they are given. You need to find minimum surface area of the sphere that could enclose all the other spheres.

NOTE : TAKE VALUE OF π(pi) AS 3.1416 FOR CALCULATIONS

Input:
First line of test file has an integer T(number of test cases).
Each test case has two lines.
First line of each test case has an integer N (Number of spheres)
Second line of each test case has N space seperated integers (i^th integer is surface area of i^th sphere in the line).

Output:
For each test case, print the required answer rounded to exactly 4 decimal digits.

Constraints:
1 ≤ T ≤ 1000
1 ≤ N ≤ 1000
1 ≤ Ai ≤ 1000

SAMPLE INPUT
2
1
1
2
2 3

SAMPLE OUTPUT
1.0000
9.8990

输入格式

见题面

输出格式

见题面

样例输入
10 15 17 3 20 15 2 18 20 3 5 14 16 9 9 4 16 15 15 15 15 3 10 7 1 18 20 9 13 16 12 4 2 1 6 1 7 19 18 18 13 14 12 9 14 20 12 9 7 18 16 1 13 5 20 13 2 19 1 6 6 5 1 7 17 19 7 3 17 16 20 2 10 3 2 3 3 5 12 9 2 7 1 14 11 12 7 5 3 19 2 8 15 3 15 11 13 13 5 1 9 5 2 18 7 3 12 1 7 3 1 9
样例输出
2307.7496 2149.0338 6.0000 7.0000 4121.1776 2344.7583 132.8041 1764.1580 141.4416 212.4002