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

呃....k段,考虑各段和段间可能的空隙,就按s[i]的选择分成了2*k-1个状态

Posted by ArXoR at 2005-07-17 10:50:33 on Problem 2479
In Reply To:空间O(k)的空间吗?我想的是a[i][j]表示前j个的最大i段和,但是ms时间空间都很划不来 Posted by:achilles at 2005-07-17 10:29:59
分别记录为以s[i]结尾的最大值
分别考虑每加入一个s[i+1]时
它进入段j
还是
进入段间
而段与段间可以用奇偶分开
这样可以吧?

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