| ||||||||||
| 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 | |||||||||
太水了!!!#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator