摘要: Problem Description我们有一个数列A1,A2...An,你现在要求修改数量最少的元素,使得这个数列严格递增。其中无论是修改前还是修改后,每个元素都必须是整数。请输出最少需要修改多少个元素。Input第一行输入一个T(1≤T≤10),表示有多少组数据每一组数据:第一行输入一个N(1≤... 阅读全文
posted @ 2015-09-11 21:02 UniqueColor 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Problem Description给定序列A={A1,A2,...,An}, 要求改变序列A中的某些元素,形成一个严格单调的序列B(严格单调的定义为:Bi 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 us... 阅读全文
posted @ 2015-09-11 20:54 UniqueColor 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionFive hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to g... 阅读全文
posted @ 2015-09-11 13:18 UniqueColor 阅读(177) 评论(0) 推荐(0) 编辑
摘要: DescriptionBessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her next N (1 ≤ N... 阅读全文
posted @ 2015-09-11 12:46 UniqueColor 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionIn an n∗m maze, the right-bottom corner is the exit (position (n,m) is the exit). In every position of this maze, there is either a... 阅读全文
posted @ 2015-09-11 11:26 UniqueColor 阅读(213) 评论(0) 推荐(0) 编辑