摘要: Given a sequence of K integers { N 1, N 2, ..., N K }. A continuous subsequence is defined to be { N i , N i +1, ..., N j } where 1≤ i ≤ j ≤ K . The M 阅读全文
posted @ 2020-02-16 22:21 阳离子 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 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. In 阅读全文
posted @ 2020-02-16 21:54 阳离子 阅读(136) 评论(0) 推荐(0) 编辑
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2020-02-16 21:50 阳离子 阅读(105) 评论(0) 推荐(0) 编辑