Colored Trees

Problem Number: 
47
Type of Problem: 
Problem Category: 
Input: 
Critical Input
0
0
Critical Input: 
20 999 605008820 987 710152969 906 481262173 6 6 10 4 4 1 988 302683841 935 705926697 962 124303339 962 725592059 908 980896097 1 1 10 2 10 1 10 5 2 10 10 3 947 254554901 999 337198141 3 2
Random Input: 
Problem Id: 
47