pku1847专题

pku1847 Tram

题目大意:使switch改变尽量少。输入First number in the i-th line, Ki (0 <= Ki <= N-1), represents the number of rails going out of the i-th intersection. Next Ki numbers represents the intersections directly connect