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{
相关文章
相关标签/搜索