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

怎么老是WA呀,根本没有什么错误呀!

Posted by hheq121 at 2009-04-21 21:18:05 on Problem 1922
#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:
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