시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB94573763.793%

문제

You have 8 circles of equal size and you want to pack them inside a square. You want to minimize the size of the square. The following figure illustrates the minimum way of packing 8 circles inside a square:

Given the radius, r, find the area of the minimum square into which 8 circles of that radius can be packed.

입력

The first input line contains a positive integer, n, indicating the number of test cases. Each test case consists of a positive real number (between 0.001 and 1000, inclusive) in a single line denoting the radius, r.

출력

For each test case, output the area of the minimum square where 8 circles of radius r can be packed. Print 5 digits after the decimal. Your output is considered correct if it is within ±0.00001 of the judge’s output.

예제 입력 1

2
0.1
0.2

예제 출력 1

0.34383
1.37532