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 |
Re:to flymouse 没理解您的意思=.=||In Reply To:Re:to flymouse 没理解您的意思=.=|| Posted by:boys at 2007-01-10 21:16:51 其实也可以这么做:易证,距离每个点的最远点一定是树的直径上的两个端点之一,两次dfs即可。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator