摘要: DescriptionNow you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achievable. So you shoul... 阅读全文
posted @ 2015-08-15 15:53 无解大神 阅读(170) 评论(0) 推荐(0)
摘要: DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul... 阅读全文
posted @ 2015-08-15 15:51 无解大神 阅读(148) 评论(0) 推荐(0)
摘要: PalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:44186Accepted:15050DescriptionA palindrome is a symmetrical string, that is, a string ... 阅读全文
posted @ 2015-08-15 15:46 无解大神 阅读(185) 评论(0) 推荐(0)
摘要: DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located... 阅读全文
posted @ 2015-08-15 15:39 无解大神 阅读(167) 评论(0) 推荐(0)
摘要: DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very... 阅读全文
posted @ 2015-08-15 15:26 无解大神 阅读(204) 评论(0) 推荐(0)
摘要: DescriptionIn a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, an... 阅读全文
posted @ 2015-08-15 15:16 无解大神 阅读(266) 评论(0) 推荐(0)
摘要: DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i... 阅读全文
posted @ 2015-08-15 15:09 无解大神 阅读(131) 评论(0) 推荐(0)
摘要: DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 ... 阅读全文
posted @ 2015-08-15 14:57 无解大神 阅读(171) 评论(0) 推荐(0)
摘要: Description一组研究人员正在设计一项实验,以测试猴子的智商。他们将挂香蕉在建筑物的屋顶,同时,提供一些砖块给这些猴子。如果猴子足够聪明,它应当能够通过合理的放置一些砖块建立一个塔,并爬上去吃他们最喜欢的香蕉。研究人员有n种类型的砖块,每种类型的砖块都有无限个。第i块砖块的长宽高分别用xi,... 阅读全文
posted @ 2015-08-14 20:30 无解大神 阅读(338) 评论(0) 推荐(0)
摘要: DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma... 阅读全文
posted @ 2015-08-14 20:19 无解大神 阅读(132) 评论(0) 推荐(0)