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 |
状态转移方程为什么是dp[i][j] = max(dp[i-1][j], dp[i+1][j], dp[i][j-1], dp[i][j+1]) + 1状态转移方程不应该是 dp[i][j] = max(dp[i-1][j]+dist[i][j]-dist[i-1][j], dp[i+1][j]+dist[i][j]-dist[i+1][j], dp[i][j-1]+dist[i][j]-dist[i][j-1], dp[i][j+1]+dist[i][j]-dist[i][j+1]) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator