摘要: #include<cstdio>#include<cstring>const int maxn=100010;#define lowbit(i) ((i)&(i))int c[maxn]; void update(int x,int v) { for(int i=x;i<maxn;i+=lowbit 阅读全文
posted @ 2020-02-12 10:41 superPG 阅读(58) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>using namespace std; struct node { typename data; //数据域 node* lchild; node* rchild; }; node* root = NULL; //新建节点 node*newNode(int v) { 阅读全文
posted @ 2020-02-12 10:40 superPG 阅读(129) 评论(0) 推荐(0) 编辑