| ||||||||||
| 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:高手帮帮忙啊!In Reply To:高手帮帮忙啊! Posted by:90401452 at 2004-12-17 20:29:21 while中scanf ("%f %d %d",&x,&a,&b);
改为scanf ("%f %d %f",&x,&a,&b);
> #include<stdio.h>
> #define pi 3.1415927
> void main() {
> int a,i=0;
> float x,b,e,f;
> scanf ("%f",&x);
> scanf ("%d",&a);
> scanf ("%f",&b);
> while (a!=0&&b!=0) {
> i++;
> e=pi*x*a/(12*5280);
> f=3600*e/b;
> printf ("Trip #%d: %.2f %.2f\n",i,e,f);
>
> scanf ("%f %d %d",&x,&a,&b);
> }
> }
> 怎么会是wrong answer呢?
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator