PROBLEM LINKS:
DIFFICULTY:
Medium
PREREQUISITES:
Trees, Cycles, Dfs
SOLUTION:`
http://www.ioinformatics.org/locations/ioi08/contest/IOI2008Booklet1.0.pdf .
EDITORIALIST’S SOLUTION:
Can be found here.
Medium
Trees, Cycles, Dfs
http://www.ioinformatics.org/locations/ioi08/contest/IOI2008Booklet1.0.pdf .
Can be found here.