| ||||||||||
| 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 | |||||||||
ft~~~~~~~我也用这个算法,但是被我写成了N^4的,我真猪头In Reply To:我想了一个n^2的DP,一直都是WA,是算法不对吗?(见内) Posted by:mostleg at 2005-07-29 18:20:42 > 令best[i][j]表示左边从1到i,右边从1到j的最优解。 > 状态转移就是从best[i][j-1],best[i-1][j]或者是best[a-1][b-1]+2中取最大的(a,b表示从i,j向上能画的最低的交叉线) Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator