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 |
呃....k段,考虑各段和段间可能的空隙,就按s[i]的选择分成了2*k-1个状态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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator