![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状数组
onsterm
oi新生
展开
-
二维树状数组入门(1)
poj1195#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int len=0;int sum[1026][1026];int lowbit(int x){ return x&-x;}void add(int x,int y,int z)...原创 2018-06-06 18:44:54 · 111 阅读 · 0 评论 -
二维树状数组入门(2)
poj2155#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int len=0;int sum[1026][1026];int lowbit(int x){ return x&-x;}void add(int x,int y,int z)...原创 2018-06-06 18:56:58 · 153 阅读 · 0 评论