Biswa has been thinking about the universe and its randomness nowadays. He dreams about some sort of objects in his sleep. These objects have a similar property. Every point on the surface of the object has similar distance from its center. If he dreams about a dimensional object, he places points randomly on its surface. Now he wonders what is the probability that the shape (for 2D object the shape will be a triangle, for 3D object the shape will be a tetrahedron, and so on) created by those points will not contain the center of the object?
In the figure, there are 2 possible shape configurations for a 2D object.
The first line of the test case contains a positive integer () denoting the number of test cases. Then in the following lines, there will be a positive integer () in each line denoting the dimension.
For each case, the required probability should be given as output. Errors less than will be ignored.
Input | Output |
---|---|
2 100 99 | 1.00 1.00 |