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 wahahaha at 2005-08-30 12:43:31 on Problem 2593
In Reply To:代码见内 Posted by:windbells at 2005-08-30 11:04:00
> 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