摘要: Problem Description You were driving along a highway when you got caught by the road police for speeding. It turns out that they\'ve been following yo 阅读全文
posted @ 2016-01-29 23:42 nicetomeetu 阅读(188) 评论(0) 推荐(0)
摘要: Problem Description N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出每个气 阅读全文
posted @ 2016-01-29 20:34 nicetomeetu 阅读(134) 评论(0) 推荐(0)
摘要: Problem Description 我们有一个数列A1,A2...An,你现在要求修改数量最少的元素,使得这个数列严格递增。其中无论是修改前还是修改后,每个元素都必须是整数。请输出最少需要修改多少个元素。 Input 第一行输入一个T(1≤T≤10),表示有多少组数据每一组数据:第一行输入一个N 阅读全文
posted @ 2016-01-29 02:30 nicetomeetu 阅读(431) 评论(0) 推荐(0)