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

在某个论坛看到有人提供的一个待验证的算法,刚试了一下,是正确的,方法如下

Posted by czcomt at 2008-12-25 18:34:14 on Problem 2631
先任一个点(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