| ||||||||||
| 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:WA!输出格式有没有陷阱啊?In Reply To:WA!输出格式有没有陷阱啊? Posted by:SCUT_Sparrow at 2006-12-17 22:29:27 我的源程序如下,有什么问题啊?
#include<iostream.h>
#include<stdio.h>
void main()
{ float d,t,l,v;
long int r,n=0;
cin>>d>>r>>t;
while (r>0)
{ l=d*r*3.1415927/12/5280;
v=l/t*3600;
cout<<"Trip #"<<++n<<": ";
printf("%0.2f %0.2f\n",l,v);
cin>>d>>r>>t;
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator