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:在某个论坛看到有人提供的一个待验证的算法,刚试了一下,是正确的,方法如下

Posted by kanovy at 2009-08-27 12:47:07 on Problem 2631
In Reply To:在某个论坛看到有人提供的一个待验证的算法,刚试了一下,是正确的,方法如下 Posted by:czcomt at 2008-12-25 18:34:14
> 先任一个点(A)DFS,找到最长的终点(B),再从(B)开始DFS找最长,第二次DFS的结果就是答案了,不明白的mail我吧

谢了,其实只要把图画出来就很清晰了

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