上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: Given a sequence of K integers { N1, N2, ..., NK}. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj} where 1 5 #include 6 #include 7 #... 阅读全文
posted @ 2015-03-16 17:46 Joilee 阅读(216) 评论(0) 推荐(0) 编辑
摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door... 阅读全文
posted @ 2015-03-16 15:31 Joilee 阅读(144) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and... 阅读全文
posted @ 2015-03-16 12:29 Joilee 阅读(146) 评论(0) 推荐(0) 编辑
摘要: A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po... 阅读全文
posted @ 2015-03-16 11:59 Joilee 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g... 阅读全文
posted @ 2015-03-15 23:31 Joilee 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页