摘要: 1081 Rational Sum (20分) Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum. Input... 阅读全文
posted @ 2020-04-13 17:22 Hu_YaYa 阅读(15) 评论(0) 推荐(0)
摘要: 1049 Counting Ones (30分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in th... 阅读全文
posted @ 2020-04-13 16:07 Hu_YaYa 阅读(11) 评论(0) 推荐(0)
摘要: 1104 Sum of Number Segments (20分) Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For ... 阅读全文
posted @ 2020-04-13 13:40 Hu_YaYa 阅读(17) 评论(0) 推荐(0)
摘要: 1069 The Black Hole of Numbers (20分) For any 4-digit integer except the ones with all the digits being the same, if we sort the di... 阅读全文
posted @ 2020-04-13 12:27 Hu_YaYa 阅读(25) 评论(0) 推荐(0)