#Lutece0096. Archimedes
Archimedes
Migrated from Lutece 96 Archimedes
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
Mr. Wang has got a ball made of a certain kind of metal (assume the ball is uniform density). He wants to find out what the metal is by calculating the density of the ball. Mr. Wang follows the story of Archimedes and crown. By putting the ball in the liquid (assume the liquid is deep enough). Mr. Wang can measure the height indicated in the image.
And the density of the liquid is , the radius of the ball is . Now Mr. Wang asks you to simply tell the density of the ball. You can assume the density of the ball is no greater than the liquid.h measures the height from the bottom of the ball to the liquid surface.
Input
The input has many test cases. The first line is an integer indicating the number of test cases. Following lines there are three real numbers , , .()
Output
For each test case, output one line with the answer, the density of the ball. round to 0.01. Please refer to the sample output.
Samples
2
9 9 1
9 8 1
0.50
0.59
Resources
The 8th UESTC Programming Contest Preliminary