AC:
int find(int p) { if (t[p] != p) t[p] = find(t[p]); return t[p]; }
MLE:
int find(int x) { return t[x] == x ? x : t[x] = find(x); }
求解答