摘要: Problem DescriptionFor a sequence S1, S2, ... , SN, and a pair of integers (i, j), if 1 2 #include 3 #include 4 #include 5 using namespace std... 阅读全文
posted @ 2014-05-02 22:17 Oyking 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionGiven n integers.You have two operations:U A B: replace the Ath number by B. (index counting from 0)Q A B: output the length of the... 阅读全文
posted @ 2014-05-02 17:11 Oyking 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Problem Description 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形: 1、挑出的人保持原队形的相对顺... 阅读全文
posted @ 2014-05-02 16:20 Oyking 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Problem Description 吉哥这几天对队形比较感兴趣。 有一天,有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则称之为完美队形: 1、挑出的人保持他们在原队形的... 阅读全文
posted @ 2014-05-02 15:22 Oyking 阅读(292) 评论(0) 推荐(0) 编辑