好消息:与上题的Emergency是同样的方法。坏消息:又错了&&c++真的比c方便太多太多。
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.
Input Specification:
Each input file contains one test case. Each case starts with a line containing 0 |