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

Re:想了好久还是没懂DP去做,给点提示吧!TT

Posted by kicc at 2005-10-20 11:46:20 on Problem 2671
In 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:
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