摘要:
#include<bits/stdc++.h> using namespace std; const int maxn=2e5+10; int n,m,s; int a[maxn]; int h[maxn<<1],nxt[maxn<<1],to[maxn<<1],tot; int Log[maxn] 阅读全文
摘要:
倍增法 #include<bits/stdc++.h> using namespace std; const int maxn=1000010; int n,m,s; int h[maxn],nxt[maxn],to[maxn],tot; int Log[maxn]; int dep[maxn]; 阅读全文