| ||||||||||
| 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 | |||||||||
怎么老是WA呀,根本没有什么错误呀!#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int n,i,mintime=10000000,temp1,temp2,temp;
while(scanf("%d",&n)&&n)
{
for(i=0;i<n;i++)
{
scanf("%d%d",&temp1,&temp2);
if(temp2<0)
continue;
temp=ceil((4.5/temp1)*3600)+temp2;
if(temp<mintime)
mintime=temp;
}
printf("%d\n",mintime);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator