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 scse10_10061038 at 2011-10-22 23:03:06 on Problem 1922
#include <stdio.h>
int main()
{
	long n,time=-1,v,i,t;
	double q;
	scanf("%d",&n);
	while (n!=0)
	{
		for (i=0;i<n;i++)
		{
			scanf("%d%d",&v,&t);
			if (t>=0)
			{
				q=ceil(t+4.5*3600.0/v);
				if ((time>q)||(time==-1))
					time=q;
			}
				
		}
		printf("%d\n",time);
		scanf("%d",&n);
		time=-1;
	}
	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