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 |
Re:想了好久还是没懂DP去做,给点提示吧!TTIn Reply To:想了好久还是没懂DP去做,给点提示吧!TT Posted by:zerocool_08 at 2005-10-20 11:33:17 dp[a][b][c] a,b表示从a到b点都还没有走过,c表示现在送货人的位置 下一次,c一定是走道a或者b送货。 这个是n^3的,可以很容易再想到n^2的算法 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator