#Lutece1394. Bigger place
Bigger place
Migrated from Lutece 1394 Bigger place
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
In a boring afternoon, Tom and Marie are two boring people playing a boring game.
The rules of the game is easy.
At first Tom will drew a boring circle and the boring circle's area is .
In each round, Mary will be in the circle and draw a point randomly.And Tom will preserve the maximal circular portion without the point.If the area of the circle is less than ,the game will end.
So what's the expectation of the numbers of round played?
Input
First line of input consists of a single integer containing the number of test cases ( equal to around )
each of the following lines contain two integer ,.()
Output
ans the absolute error should be less than .
Samples
2
2 1
1 1
2.591439944260
1.000000000000
Resources
IEEEXTREME Programming Competition