![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
莫队
河渔船
成长的小垃圾
展开
-
P2709 小B的询问(莫队)
https://www.luogu.org/problem/show?pid=2709#sub莫队经典题#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int n,m,k,sum=0; int num[50009],a[5000原创 2017-03-31 14:53:26 · 444 阅读 · 0 评论 -
P1972 [SDOI2009] HH的项链(莫队)
https://www.luogu.org/problem/show?pid=1972#sub#include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #include<cmath> using namespace std; struct H{ int l,r,id,qv; }Q[200009]; in原创 2017-03-29 14:41:48 · 392 阅读 · 0 评论