Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
在某个论坛看到有人提供的一个待验证的算法,刚试了一下,是正确的,方法如下先任一个点(A)DFS,找到最长的终点(B),再从(B)开始DFS找最长,第二次DFS的结果就是答案了,不明白的mail我吧 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator