Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

50题水过,纪念纪念…………

Posted by bobo0906 at 2010-07-14 21:32:06 on Problem 1665
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator