摘要: 题目:Candies Distribution 传送门:http://codeforces.com/problemset/problem/1054/C 分析: 方法一: 1)类似拓扑排序的做法。 2)当$L_i,R_i$均为$0$时,这个数就是当前最大的数,可以移除并且去掉他带来的影响,即左边的$R 阅读全文
posted @ 2019-02-18 23:10 hjj1871984569 阅读(216) 评论(0) 推荐(0) 编辑