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.

Sample Input
1
4 4

Sample Output
341.33

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐