Root of the Problem: C version

http://www.codechef.com/problems/TREEROOT

PASSED
Root of the Problem: input

Correct output:
4
6