poj2492

#include<cstdio> #include<iostream> using namespace std; const int maxn = 10000 + 10; int p[maxn];///p 表明祖先 int sex[maxn];/// sex 表明性別 int tofind(int x){ if(p[x] == x) return x; else{
相關文章
相關標籤/搜索