| ||||||||||
| 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 | |||||||||
还能不能更短?我想不出来了!#include <stdio.h>
int main(){
double d,r,t,s,c=0;
while(scanf("%lf%lf%lf",&d,&r,&t)){
if(r==0)break;
c++;
s = r*.31415927*d/6336;
printf("Trip #%d: %.2lf %.2lf\n",(int)c,s,s/t*3600);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator