| ||||||||||
| 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 | |||||||||
50题水过,纪念纪念…………#include<iostream>
#define p 3.1415927
using namespace std;
int main()
{
int test=0,y;
float x,z;
while(scanf("%f%d%f",&x,&y,&z)&&y!=0)
{
printf("Trip #%d: %.2f %.2f\n",++test,x*p*y/12.0/5280.0,x*p*y*30.0/528.0/z);
}
//system("pause");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator