In the mid-1660s the Great Plague of London drove many people away from the densely-populated cities and into the sparsely-populated countryside. One of these people was a young man in his early 20s by the name of Isaac Newton.
One night, Isaac awakes with a thirst in his throat. He puts on his slippers, grabs a bucket and rope, and heads out to the well to fetch some water. In the light of the moon he makes his way over to the well and begins to lower in the bucket.
However, he finds that he has run out of rope before reaching the water! He could easily go back and get more rope, but he's not sure how much more he would need to bring back, and it's too dark to see the bottom of the well. Being a clever fellow, Isaac grabs a rock and drops it down the well. He begins to count on his pocketwatch at the moment of release, marking the exact time until he hears the splash of the rock hitting the water's surface below.
After a few mental calculations, Isaac heads back to the house and returns with the exact amount of rope required.
Assume acceleration due to gravity is constant g = -9.8 m/s^2
Assume air resistance is not a factor.
Input Data
First line is Q, the quantity of testcases.
Q lines then follow, each with a single value T being the amount of
time it takes for an object to reach the bottom of a well after being released, in seconds.
Answer
Should consist of space-separated values corresponding to the depth of
the well in each testcase.
Error should be less than 1e-6.
Example
input data:
1
1.234
answer:
7.461504