IOI09F - Editorial

PROBLEM LINKS:

Practice
Contest

DIFFICULTY:

Easy-Medium

PREREQUISITES:

BFS, Graph Theory

SOLUTION:

http://www.ioi2009.org/GetResource?id=1969 Page 51

SOURCE:

Can be found here.

//