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 |
Re:用动态规划怎么做啊?In Reply To:用动态规划怎么做啊? Posted by:gaoteng1984 at 2007-08-01 19:56:41 > 我是先求的sum[i][j] = Sum{All value in Matrix((0,0), (i,j))}, 然后再用4重循环定每个矩形的左上角和右下角,即sumMax[i][j] = Max{sum[i][j] - sum[iSmall][j] - sum[i][jSmall] + sum[iSmall][jSmall]} (for each iSmall < i && jSmall < j). 是O(N^4)的. > 用动态规划怎么做啊,请教各位牛人... Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator