差分数列
coder_coder_coder
默默的程序猿
展开
-
cf295A. Greg and Array
#include #include using namespace std; const int N=100010; long long a[N],b[N],query[N],sumq[N]; int n,m,k,x,y; struct state{ int l,r,d; }op[N]; int main() { cin>>n>>m>>k;原创 2014-08-06 00:14:20 · 372 阅读 · 0 评论 -
2983Magic-Pen3
// #include #include #include using namespace std; const int N=10005; int a[N],b[N],n,m,x,y; int main(){ while(scanf("%d%d",&n,&m)==2){ memset(a,0,sizeof(a)); memset(b,0,sizeof原创 2014-08-06 22:45:45 · 385 阅读 · 0 评论 -
hoj2682Magic-Pen2
//代码#include #include #include using namespace std; const int N=10005; int a[N],b[N],n,m,x,y; int main(){ while(scanf("%d%d",&n,&m)==2){ memset(a,0,sizeof(a)); memset(b,0,sizeo原创 2014-08-06 22:40:49 · 385 阅读 · 0 评论