摘要: I. Max answer 链接:https://nanti.jisuanke.com/t/38228 思路: 枚举最小值,单调栈确定最小值的边界,用线段树+前缀和维护最小值的左右区间 实现代码: J. Distance on the tree 链接:https://nanti.jisuanke.c 阅读全文
posted @ 2019-04-20 19:23 冥想选手 阅读(660) 评论(0) 推荐(0) 编辑