sicily 1051. Biker's Trip Odomete

#include <iostream>
#include
<stdio.h>
#include
<cmath>
using namespace std;
#define pi acos(-1.0)
int main()
{
int n=1;
double d,r,t;
while(cin>>d>>r>>t,r)
{
printf(
"Trip #%d: %.2f %.2f\n",n++, r*d*pi/63360 , r*d*pi*3600/(63360*t) );
}
return 0;
}

  

posted on 2011-07-14 19:32  sysu_mjc  阅读(204)  评论(0编辑  收藏  举报

导航