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:高手请指教?为什么OUTPUT LIMIT EXCEED?In Reply To:高手请指教?为什么OUTPUT LIMIT EXCEED? Posted by:BlueBlood at 2005-01-23 10:45:10 > #include <stdio.h> > #include <iostream.h> > > > #define PI 3.1415927 > > //finished on 2005.1,20th > int main() > { > double d= 0,dis,vel; > int t=0,rev=0; > int count=0; > > cin>>d>>rev>>t; > > while ( rev) > { > count++; > dis = PI*rev*d*(1.0/12)*(1.0/5280); > vel = dis *3600.0/ t; > printf("Trip #%d:",count); > printf(" %.2f %.2f\n",dis,vel); > scanf ("%f %d %d",&d,&rev,&t); > }; > > > return 0; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator