2019年4月3日

线段树模板

摘要: int a[maxn]; struct Segment_Tree { #define maxn 100005 #define ls o>1; sum[ls]+=(mid-l+1)*add[o]; sum[rs]+=(r-mid)*add[o]; add[ls]+=add[o]; add[rs]+=add[o]; ... 阅读全文

posted @ 2019-04-03 22:35 欣崽 阅读(205) 评论(0) 推荐(0)

导航