
PAT甲级练习
文章平均质量分 84
绿蚁.r
这个作者很懒,什么都没留下…
展开
-
Radix
1010 Radix (25)(25 分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is a binary number.Now for ...原创 2018-07-17 16:41:59 · 947 阅读 · 0 评论 -
Emergency
1003 Emergency (25)(25 分)As an emergency rescue team leader of a city, you are given a specialmap of your country. The map shows several scattered cities connected bysome roads. Amount of rescue teams...原创 2018-07-15 15:45:21 · 531 阅读 · 0 评论 -
Counting Leaves
1004 Counting Leaves (30)(30 分)A family hierarchy is usually presented by a pedigree tree. Your job isto count those family members who have no child.InputEach input file contains one test case. Each ...原创 2018-07-15 17:24:41 · 457 阅读 · 0 评论 -
1020 Tree Traversals
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...原创 2018-08-23 15:26:40 · 234 阅读 · 0 评论