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

这怎么错了??

Posted by hy1987swain at 2007-01-08 13:18:03 on Problem 1922
帮忙看看,哪里错了。。。
#include<iostream>
using namespace std;

int main()
{
	int n;
	while(cin>>n && n!=0)
	{	
		int	s0,t0,s1,t1,t2=0;
		cin>>s0>>t0;
		if(16200%s0==0)
				t0=16200/s0;
			else
				t0=16200/s0+1;
		for(int i=0;i<n-1;i++)
		{
			cin>>s1>>t1;
			if(t1>=0  && s1>=s0)
			{
				if(16200%s1==0)
					t2=t1+16200/s1;
				else
					t2=t1+16200/s1+1;
				if(t2<t0)
					t0=t2;
			}
			t2=0;
		}
		cout<<t0<<endl;
	}
	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