#include<stdio.h>
int main()
{
int i;
long rev;
double sec,dia,dis;
i = 1;
while(1){
scanf("%lf%ld%lf",&dia,&rev,&sec);
if(rev == 0) break;
dis = dia *rev * 3.1415927 /(12 *5280);
sec = sec /(60*60);
printf("Trip #%d: %.2lf %.2lf\n",i,dis,dis/sec);
i++;
}
return 0;
}
zoj 1813 Biker's Trip Odometer
最新推荐文章于 2014-09-05 23:05:32 发布