| ||||||||||
| 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 | |||||||||
为什么总是OUTPUT LIMIT EXCEED??????/这题自己运行可以,就是总是OUTPUT LIMIT EXCEED,不知道哪出了问题,一直没注意,请帮帮忙
#include<iostream>
#include<stdio.h>
using namespace std;
const float PI=(float)3.1415927;
int main()
{
float d,D,T;
int r,t,i=0;
while(r)
{
cin>>d>>r>>t;
D=d*PI*(float)r/(12*5280);
T=D*3600/(float)t;
i++;
cout<<"Trip #"<<i<<":";
printf("%6.2f %6.2f\n",D,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