Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
能讲下思路吗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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator