摘要:
POI2011 Tree Rotations 给定一个n include using namespace std; typedef long long LL; inline void read(int &x){ char ch; x=0; for (; ch=getchar(), !isdigit( 阅读全文
摘要:
旅行(树剖+主席树) 给定一个n( include using namespace std; const int maxn=1e5+5, INF=0x3f3f; int n, m, root; struct Edge{ int to, nxt; }e[maxn 2]; int cnte, fir[m 阅读全文