| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:这题知道圆台公式就OK了。一个while语句就搞定!In Reply To:这题知道圆台公式就OK了。一个while语句就搞定! Posted by:redraiment at 2007-01-13 16:57:15 > #include <math.h>
> #include <stdio.h>
>
> #define Pi 3.1415926
>
> int main()
> {
> double D;
> double d;
> double V;
>
> while(scanf("%lf%lf",&D,&V),D && V)
> {
> d=pow(D*D*D-6*V/Pi,1.0/3);
> printf("%.3lf\n",d);
> }
> }
同意~~~~~~~~~~~~~~~
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator