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

没错,你仔细想你问题出在哪儿~~

Posted by richardxx at 2009-06-01 19:45:44 on Problem 1160
In Reply To:这种dp是不是错的? Posted by:channel5 at 2009-06-01 10:58:15
> 我在网上看到的dp是假设k, j之间新设一个邮局是在中点的位置, 但是这个位置会不会发生k之前的村庄离新邮局更近, 而不是离前一个邮局更近? 这样f[i-1][k] + cost[k+1][j]就不是最短的距离了?

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