摘要: DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so calle... 阅读全文
posted @ 2015-08-06 20:52 心向晴 阅读(805) 评论(0) 推荐(0)
摘要: My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F... 阅读全文
posted @ 2015-08-06 16:46 心向晴 阅读(1272) 评论(0) 推荐(1)
摘要: Given several segments of line (int the X axis) with coordinates [Li , Ri ]. You are to choose the minimal amount of them, such they would completely ... 阅读全文
posted @ 2015-08-06 12:54 心向晴 阅读(328) 评论(0) 推荐(0)
摘要: In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacen... 阅读全文
posted @ 2015-08-04 16:34 心向晴 阅读(292) 评论(0) 推荐(0)
摘要: Let us consider sets of positive integers less than or equal to n. Note that all elements of a set are different. Also note that the order of elements... 阅读全文
posted @ 2015-07-31 22:12 心向晴 阅读(542) 评论(0) 推荐(0)
摘要: DescriptionToday on a lecture about strings Gerald learned a new definition of string equivalency. Two stringsaandbof equal length are calledequivalen... 阅读全文
posted @ 2015-07-31 21:18 心向晴 阅读(422) 评论(0) 推荐(0)
摘要: DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum... 阅读全文
posted @ 2015-07-31 19:53 心向晴 阅读(394) 评论(0) 推荐(0)
摘要: DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thoug... 阅读全文
posted @ 2015-07-31 19:44 心向晴 阅读(204) 评论(0) 推荐(0)
摘要: DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers i... 阅读全文
posted @ 2015-07-31 19:35 心向晴 阅读(191) 评论(0) 推荐(0)
摘要: Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空... 阅读全文
posted @ 2015-07-31 19:17 心向晴 阅读(2191) 评论(0) 推荐(0)