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读出的路径可能有重复元素,必须为每一个状态都保存完整的路径In Reply To:如果用DP做的话,可以储存上一状态的,那么不就可以了吗?最后加个循环反过来读路径 Posted by:Essence_me at 2005-08-08 21:47:30 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator