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 sanshuiii at 2018-10-28 12:11:43 on Problem 3107
我如果保存重心的数组开到50005就可以ac,但是如果改成105就会re????难道一颗树可以有超过两个重心吗???





但是显然的,如果一棵树有超过两个重心,那么至少有两个重心不相邻,那么它们的路径上的任意一点分割的子树必定优于那两个重心中的至少一个。是什么原理???

有人可以分享一下测试数据吗?

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