dfs
棉毛裤穿吗
而我们终将回归那片太初的花海
展开
-
4.20 PAT 甲级 1021 Deepest Root
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root ...原创 2020-04-20 11:09:33 · 133 阅读 · 0 评论 -
4.19 PAT 甲级 1004 Counting Leaves
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...原创 2020-04-19 10:14:03 · 80 阅读 · 0 评论