标题: 菜鸟记录:c语言实现PAT甲级1004--Counting Leaves [打印本页] 作者: 立聪堂德州十三局店 时间: 2023-4-17 17:25 标题: 菜鸟记录:c语言实现PAT甲级1004--Counting Leaves 好消息:与上题的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