摘要: PAT 1005. Spell It Right (20) Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the su 阅读全文
posted @ 2018-01-03 22:37 A-Little-Nut 阅读(115) 评论(0) 推荐(0) 编辑
摘要: PAT 1004. 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 阅读全文
posted @ 2018-01-03 20:12 A-Little-Nut 阅读(112) 评论(0) 推荐(0) 编辑
摘要: PAT 1003. Emergency (25) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered ci 阅读全文
posted @ 2018-01-03 18:30 A-Little-Nut 阅读(140) 评论(0) 推荐(0) 编辑