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

Re:用动态规划怎么做啊?

Posted by DestinyDesigner at 2008-10-06 23:47:06 on Problem 1050
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:
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