摘要: The stringAPPAPTcontains twoPAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by ... 阅读全文
posted @ 2015-03-14 22:19 Joilee 阅读(202) 评论(0) 推荐(0) 编辑
摘要: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat... 阅读全文
posted @ 2015-03-14 09:58 Joilee 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 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 Specificati... 阅读全文
posted @ 2015-03-14 09:21 Joilee 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less t... 阅读全文
posted @ 2015-03-14 07:03 Joilee 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M 2 #include 3 #include 4 ... 阅读全文
posted @ 2015-03-14 06:54 Joilee 阅读(122) 评论(0) 推荐(0) 编辑