BFS
xiao1guaishou
这个作者很懒,什么都没留下…
展开
-
PAT A1094 The Largest Generation (25 分)
题目A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Inp...原创 2019-07-25 21:40:25 · 113 阅读 · 0 评论 -
PAT A1004 Counting Leaves (30 分)
题目: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 st...原创 2019-07-25 23:19:11 · 102 阅读 · 0 评论