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:to flymouse 没理解您的意思=.=||

Posted by 2559569022 at 2019-05-02 22:00:06 on Problem 3162
In Reply To:Re:to flymouse 没理解您的意思=.=|| Posted by:boys at 2007-01-10 21:16:51
其实也可以这么做:易证,距离每个点的最远点一定是树的直径上的两个端点之一,两次dfs即可。 

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