标题:学校里没一个人会的问题,速求解答!!
取消只看楼主
zz199200
Rank: 1
等 级:新手上路
帖 子:18
专家分:2
注 册:2011-11-26
结帖率:75%
已结贴  问题点数:20 回复次数:1 
学校里没一个人会的问题,速求解答!!
Problem Description
Zero recently bought a new bottle which is a circular truncated cone. He likes this bottle very much as this bottle is limited version. One day he wonder how high the water is after pouring some water into the bottle. Can you tell him the height of the water?

You are given the radius of the bottle's top and bottom circle. The bottle's height is also given.
Input
The first line contains an integer T which means the number of test cases.

Each test case contains four float point number: r, R, H, V(1<= r, R, H<=100; r<=R; 0<=V<=1000000000) within one line. ‘r’ indicates the bottom radius. ‘R’ indicates the top radius. ‘H’ indicates the height. ‘V’ indicates the volume of the water.
Output
For each case, just output one line containing one float point number which describes the height of the water. Note that you should round the number to six fractional digits.
Sample Input
1
100 100 100 3141562
Sample Output
99.999024
搜索更多相关主题的帖子: him 学校 recently version limited 
2011-12-02 19:25
zz199200
Rank: 1
等 级:新手上路
帖 子:18
专家分:2
注 册:2011-11-26
得分:0 
不好意思,不知道为什么自动结贴了;分没给对的请见谅
2011-12-25 21:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-356802-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.858298 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved