摘要: P1438 无聊的数列 思路: 线段树维护差分数组 code #define ls(x) x<<1 #define rs(x) x<<1|1 struct tree { int l, r; int add, sum; } tr[N << 2]; int a[N], b[N]; void pushup 阅读全文
posted @ 2022-04-22 13:02 指引盗寇入太行 阅读(32) 评论(0) 推荐(0) 编辑