【題解】poj2893 M × N Puzzle 樹狀數組

題目鏈接 學習了大佬博客 #include<cstdio> #include<cstring> const int N=1e6+10; int b[N],a[N],k,n,m,step,s,cnt; void add(int x) { for(;x<=k;x+=x&-x) b[x]++; } int ask(int x) { int ans=0; for(;
相關文章
相關標籤/搜索