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 windbells at 2005-08-30 11:04:00 on Problem 2593
In Reply To:大家都来说一下啊 Posted by:wahahaha at 2005-08-30 10:54:56
sum=0;
b=0;
for(i=1;i<n;i++)
{
	if(b>0) b+=num[i];
	else b=num[i];
	if(b>sum)
		sum=b;
	A[i]=sum;
}

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