摘要:
题目大意:改变一个数的位置 把一个序列变成不下降序列 题解: 设置一个pre,如果破坏单调性,就把‘删除’这个。否则把pre修改为当前元素的值。 考试时这样得了90分,是因为我的做法只能过这样的数据 1 3 4 1 5 7 (这个序列移动的数字是第二个1) 不能过这样的 1 3 6 100 7 9 阅读全文
posted @ 2017-10-06 20:56
ANhour
阅读(182)
评论(0)
推荐(0)
摘要:
题目描述 Although Farmer John has no problems walking around the fair to collect prizes or see the shows, his cows are not in such good shape; a full day 阅读全文
posted @ 2017-10-06 12:43
ANhour
阅读(237)
评论(0)
推荐(0)
摘要:
拼不出的数lost.in/.out/.cpp【问题描述】3 个元素的集合{5, 1,2} 的所有子集的和分别是0,1, 2, 3, 5, 6, 7, 8。发现最小的不能由该集合子集拼出的数字是4。现在给你一个n 个元素的集合,问你最小的不能由该集合子集拼出的数字是多少。注意32 位数字表示范围。 【 阅读全文
posted @ 2017-10-06 12:36
ANhour
阅读(340)
评论(0)
推荐(0)

浙公网安备 33010602011771号