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


恩,我想问为啥 floyed求各个点间的距离不可以。。

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