#P3310. Volume of a cylinder

Volume of a cylinder

Problem Description

One cylinder across another cylinder at right angles, tell the volume of the intersection of the cylinders.

Input

Multiple test cases, the number of them T is given in the very first line.
For each test case, two integers r1 and r2, meaning the radius of the two cylinders. ( 1 < r1, r2 < 80 )

Output

For each case, output the answer rounded to 2 digits after the decimal point.

1 4 4
341.33

Author

yifenfei