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 |
没错,你仔细想你问题出在哪儿~~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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator