摘要:
#include<bits/stdc++.h> using namespace std; const int maxn=1e6; int n,m; int to[maxn<<1],nxt[maxn<<1],h[maxn],tot;//建原图 inline void adde(int x,int y) 阅读全文
摘要:
loquat from CSP-S模拟三 //虽然但是这道题式子出来了就能写出来了 #include<bits/stdc++.h> using namespace std; const int mod=1e9+7; typedef long long ll; ll m,x,y,u,v,w; #def 阅读全文
摘要:
Splay #include<bits/stdc++.h> using namespace std; const int maxn=1e6+1e5; struct splay{ int fa,ch[2],val,cnt,siz; }t[maxn]; int root,tot,xx,n,opt,m; 阅读全文
摘要:
ST表 #include<bits/stdc++.h> using namespace std; const int maxn=5e5+10,hh=32; int n,m,s,a,b; int tot,to[2*maxn],nxt[2*maxn],h[maxn]; void adde(int x,i 阅读全文