摘要: 原因是我定义了一个二维数组 int e[510][510]; 而在使用fill对数组初始化时,并没有采用二维数组初始化的方式,而是写成了: fill(e, e + 510 * 510, inf); 正确写法应该是: fill(e[0], e[0] + 510 * 510, inf); 阅读全文
posted @ 2019-05-20 22:44 风间6324 阅读(5344) 评论(0) 推荐(2) 编辑
摘要: 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 sum in English. Input Specificat 阅读全文
posted @ 2019-05-20 21:53 风间6324 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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 inp 阅读全文
posted @ 2019-05-20 20:37 风间6324 阅读(275) 评论(0) 推荐(0) 编辑