摘要: DescriptionOnce Bob took a paper stripe ofnsquares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negativ... 阅读全文
posted @ 2015-08-09 19:45 果冻0_0 阅读(239) 评论(0) 推荐(0) 编辑
摘要: DescriptionVanya walks late at night along a straight street of lengthl, lit bynlanterns. Consider the coordinate system with the beginning of the str... 阅读全文
posted @ 2015-08-09 19:20 果冻0_0 阅读(267) 评论(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 aft... 阅读全文
posted @ 2015-08-09 18:49 果冻0_0 阅读(217) 评论(0) 推荐(0) 编辑