摘要: Segment Tree Beats $Q1.$给定长度为$n$的序列$A$,支持以下操作:1、区间取$\min$;2、区间查询最大值;3、区间求和。 const int N = 1000005; const int inf = 1<<30; int n, m, a[N]; #define lc ( 阅读全文
posted @ 2020-10-27 16:36 AC-Evil 阅读(140) 评论(0) 推荐(0) 编辑