0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
13450: [CSP-S2019] 树的重心
Memory Limit:512 MB
Time Limit:20.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Submit
Submit Record
Statistics
ShowOff!
Description
Input
2 5 1 2 2 3 2 4 3 5 7 1 2 1 3 1 4 3 5 3 6 6 7
Output
32 56
Sample Input
Copy
2 5 1 2 2 3 2 4 3 5 7 1 2 1 3 1 4 3 5 3 6 6 7
Sample Output
Copy
32 56
HINT
Source/Category
CSP-S
2019
Submit
Submit Record
Statistics
ShowOff!