返回顶部
摘要: 区间加值,区间求和的树状数组,通过差分来实现。 并没有线段树那么通用。 cpp include using namespace std; typedef long long ll; ll bit[100005]; ll bit2[100005]; int n; void add(int x, ll 阅读全文
posted @ 2019-09-25 16:47 Inko 阅读(130) 评论(0) 推荐(0) 编辑