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:Re:用动态规划怎么做啊? Posted by:DestinyDesigner at 2008-10-06 23:43:46 不是吧~我是把这个矩阵慢慢缩小,一直到1*1的矩阵。其中会产生很多的sum,if(sum>max) max=sum; 关键在你缩小矩阵的方法。我是算出矩阵四边的和,减去最小的那个和,并把矩阵做相应的调整。算法就是这样应该没错。 不过貌似我还有一些问题没解决,还没AC呢~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator