摘要: prologue 树状数组推荐写法,感谢巨佬樱雪喵的教学。 inline int lowbit(int x) { return x & -x; } inline void add(int x, int c) { for(; x <= n; x += lowbit(x)) tr[x] += c; } 阅读全文
posted @ 2023-10-04 18:17 carp_oier 阅读(45) 评论(0) 推荐(0)