Definition:
We all know how to measure the linear distance between two points and . It is measured by the length of the straight line drawn from to . However, if we want to measure the angular distance between and , we will need a third point as reference. The angular distance from point to point with respect to point is defined by the angle .
Look at the figure for clarification.
Here, is the linear distance between and . and are both angular distance between and , but with respect to point and respectively.
Problem Statement:
Meena’s school is so far far away from her home that she and her friends get super হয়রান every day from all the walking. Moreover, they get poor attendance marks (as they can’t reach school timely) and often fail to return home “সূর্য ডোবনের আগে”. So, with the term-final approaching, Meena decides to build three beautiful houses near her school so that they can attend school more easily. One house is for herself, one is for her brother Raju, and one is for her friend Rita. You can consider these houses and the school as four distinct points on a 2-Dimensional plane.
Meena also has three wishes regarding these houses:
Meena wants to connect the four buildings (three houses and one school) with straight lines to enclose an area , and she wants the value of to be as large as possible.
As they want to live near each other as well as the school, the maximum linear distance between any two buildings can be no more than .
Angular distance from the school to each house with respect to the other two houses will be equal to one another.
Being only good at দুই এর ঘরের নামতা, Meena can’t figure out what will be the maximum value of for a given . So she calls you, as you are her friend, and says,
বন্ধুরা তিনটা ইচ্ছা পূরণ করবো,
তুমিও আসো তুমিও আসো সাহায্য করতে আসো
Can you be a good friend and help Meena?
First line of input contains an integer (), which denotes the number of testcases. Next lines each represents one testcase. Each testcase has only one integer (), denoting the maximum linear distance between any two buildings.
For each testcase, print a double type number with exactly two digits after the decimal point, denoting the maximum possible value of .
Input | Output |
---|---|
2 4 22 | 8.00 242.00 |
Please note that the only purpose of the figures presented in the description is to help you understand the problem statement. These figures are freestyle drawings and may not satisfy the given conditions