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:求助~~~开始TL 后来又WA~~郁闷

Posted by s2009zy at 2010-06-01 13:11:09 on Problem 2479
In Reply To:求助~~~开始TL 后来又WA~~郁闷 Posted by:s2009zy at 2010-05-31 18:32:48
咕~~(╯﹏╰)b 不用求助了我~~~
发现原来最后一个FOR多写了个等号···
最后改成下面代码就对了~~~哎··各位同志们细心啊~~我调了两天的代码终于对了~~~~
for( i = 1 ; i < n ; i++ )
		{
		
			if(max<Right[i+1] + Lift[i])
			{
				max=Right[i+1] + Lift[i];
			}
			
		}
		printf("%d\n", max);
	}
	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