摘要:
题目描述 链接:https://ac.nowcoder.com/acm/contest/317/G来源:牛客网 思路:观察发现区间内l-r的长度与区间内最大值和最小值的差相等时,区间是‘萌’的 如果长度不相等的话,我们就要寻找l--,r++的数,并且在区间内的数加入要求的区间内; 代码如下: 阅读全文
posted @ 2019-02-06 22:42
lu_nacy
阅读(162)
评论(0)
推荐(0)
摘要:
题目描述: Every superhero has been given a power value by the Felicity Committee. The avengers crew wants to maximize the average power of the superheroes 阅读全文
posted @ 2019-02-06 00:49
lu_nacy
阅读(291)
评论(0)
推荐(0)

浙公网安备 33010602011771号