![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状数组
ZAX1
这个作者很懒,什么都没留下…
展开
-
HUD 1166 敌兵布阵(树状数组或者线段树)【树状数组】
#include<iostream> #include<cstring> using namespace std; int n; int a[50001]; int b[40001]; int lowbit(int i) { return i&(-i); } void update(int x,int val) { while(x<=n) ...原创 2019-03-06 12:51:32 · 130 阅读 · 0 评论 -
A - Ping pong(树状数组+顺序对)
Time Limit : 2000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 81Accepted Submission(s) : 27 Problem Description N(3<=N<=20000) ping pong players live ...原创 2018-11-22 17:17:46 · 380 阅读 · 0 评论