luoguP2147 [SDOI2008]洞穴勘測

10分鐘一個,仍是要多練練板子node #include<bits/stdc++.h> #define MAXN 10005 using namespace std; int n,m,tot; struct node{int ch[2],f,res;}t[MAXN]; int pp(int rt){t[rt].res = (t[rt].res ^ 1) , swap(t[rt].ch[0] ,
相關文章
相關標籤/搜索