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

Re:我哭死了,唔唔唔唔唔唔唔唔唔唔唔唔。。。。。。。。。。。少写了一个等号,让我错了几十次!!!!!ft,大家注意了!

Posted by jenny_du at 2007-03-18 13:45:27 on Problem 1922
In Reply To:我哭死了,唔唔唔唔唔唔唔唔唔唔唔唔。。。。。。。。。。。少写了一个等号,让我错了几十次!!!!!ft,大家注意了! Posted by:softmind at 2006-10-02 11:25:56
> #include <stdio.h>
> #include <math.h>
> int s;
> int t;
> int main()
> {
> 	int n;	
> 	while(scanf("%d",&n)&&n)
> 	{
> 		double time=1e18;
> 		double sum=0;
> 		for(int i=0;i<n;i++)
> 		{
> 			scanf("%d%d",&s,&t);
> 			if(t>=0)//这里少写了一个等号,错了几十次,提出来,大家注意!!!!
> 			{
> 				double d=ceil(4500*3.6/(double)s+(double)t);				
> 				if(d<time)
> 					time=d;
> 			}
> 		}		
> 		printf("%.0lf\n",time);
> 	}
> 	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