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

Re:poj 1665 瞬间刷之

Posted by ecust_niejun at 2012-03-07 15:50:51 on Problem 2378
In Reply To:poj 1665 瞬间刷之 Posted by:zihuacs at 2010-08-23 17:18:14
#include <stdio.h>
#define p 3.1415927
int main ()
{
double d,t,distance,speed;
int r,n=0;
while(scanf("%lf %d %lf",&d,&r,&t)==3){
if(r!=0)
{
distance=d*p*r/12/5280;
speed=distance/t*3600;
n++;
printf("Trip #%d: %.2lf %.2lf\n",n,distance,speed);
}
if(r==0)
	break;
}
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