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

怎么觉得是树形DP?

Posted by 2396601465 at 2016-03-30 23:50:53 on Problem 1062
我觉得要想知道酋长的花费只需知道和酋长邻接的点花费多少,知道邻接的花费多少,只需知道邻接邻接的花费多少。然后dfs从底层去找到每一个点的最少花费,一直到酋长。为啥是最短路呢?

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