摘要: Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input file contains o 阅读全文
posted @ 2018-06-12 22:42 赖兴宇 阅读(218) 评论(0) 推荐(0)
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M <= m * p where M and m are 阅读全文
posted @ 2018-06-12 22:20 赖兴宇 阅读(168) 评论(0) 推荐(0)
摘要: Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each 阅读全文
posted @ 2018-06-12 21:16 赖兴宇 阅读(165) 评论(0) 推荐(0)
摘要: Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+- 阅读全文
posted @ 2018-06-12 20:03 赖兴宇 阅读(158) 评论(0) 推荐(0)
摘要: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional 阅读全文
posted @ 2018-06-12 19:27 赖兴宇 阅读(142) 评论(0) 推荐(0)
摘要: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theor 阅读全文
posted @ 2018-06-12 17:50 赖兴宇 阅读(186) 评论(0) 推荐(0)