神仙构造,做不来做不来 详见:http://vfleaking.blog.163.com/blog/static/174807634201329104716122/ #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=200005; int T,n,ne[N],p[N],cnt,a[N],I,J;…
BZOJ 2530 Poi2011 Party Description Byteasar intends to throw up a party. Naturally, he would like it to be a success. Furthermore, Byteasar is quite certain that to make it so it suffices if all invited guests know each other. He is currently trying…