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:太水了!!!

Posted by lifanglin at 2012-05-24 09:38:59 on Problem 1922
In Reply To:太水了!!! Posted by:wocha at 2012-05-01 16:25:26
> #include<stdio.h>
> int main()
> {
> 	int u,j,n,m,q,p,w;
> 	while(scanf("%d",&n),n)
> 	{
> 		double l;
> 	  double  min=344443443.0;
> 		while(n--)
> 		{
> 			scanf("%d%d",&q,&w);
> 
> 			if(w>=0)
> 			{
> 				l=w*1.00+4.5*3600*1.0/q;
> 				if(min>l) min=l;
> 			}
> 		}
> 		p=min;
> 	if(min-p!=0)
> 		printf("%.f\n",min+0.5);
> 		else printf("%d\n",p);
> 	}
> }

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