PROBLEM LINKS:
DIFFICULTY:
Medium
PREREQUISITES:
Centroid decomposition of a tree, dfs, trees
SOLUTION:`
http://www.ioi2011.or.th/hsc/tasks/solutions/race.pdf
EDITORIALIST’S SOLUTION:
Can be found here.
Medium
Centroid decomposition of a tree, dfs, trees
http://www.ioi2011.or.th/hsc/tasks/solutions/race.pdf
Can be found here.