摘要:
原题:DescriptionOnce Bob took a paper stripe ofnsquares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly nega... 阅读全文
posted @ 2015-08-07 20:41
Shawn_Ji
阅读(163)
评论(0)
推荐(0)
摘要:
原题:DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locati... 阅读全文
posted @ 2015-08-07 20:38
Shawn_Ji
阅读(490)
评论(0)
推荐(0)
摘要:
原题:DescriptionVanya walks late at night along a straight street of lengthl, lit bynlanterns. Consider the coordinate system with the beginning of the ... 阅读全文
posted @ 2015-08-07 20:36
Shawn_Ji
阅读(16)
评论(0)
推荐(0)
摘要:
原题:Descriptionbobo has a sequence a1,a2,…,an. He is allowed to swap twoadjacentnumbers for no more than k times.Find the minimum number of inversions ... 阅读全文
posted @ 2015-08-07 20:32
Shawn_Ji
阅读(572)
评论(0)
推荐(0)
摘要:
原题:nsprinklers are installed in a horizontal strip ofgrasslmeters long andwmeters wide. Each sprinkler is installed at the horizontal center line of t... 阅读全文
posted @ 2015-08-07 20:00
Shawn_Ji
阅读(280)
评论(0)
推荐(0)
摘要:
原题:The ProblemGiven several segments of line (int the X axis) with coordinates [Li,Ri]. You are to choose the minimal amount of them, such they would ... 阅读全文
posted @ 2015-08-07 19:55
Shawn_Ji
阅读(219)
评论(0)
推荐(0)
摘要:
原题:DescriptionMy 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 va... 阅读全文
posted @ 2015-08-07 19:52
Shawn_Ji
阅读(237)
评论(0)
推荐(0)
摘要:
原题: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 ca... 阅读全文
posted @ 2015-08-07 19:48
Shawn_Ji
阅读(692)
评论(0)
推荐(0)
摘要:
原题:DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swappi... 阅读全文
posted @ 2015-08-07 19:45
Shawn_Ji
阅读(204)
评论(0)
推荐(0)