poj-1330 Nearest Common Ancestors
#include
#include
#include
#include
using namespace std;
const int maxn = 10000+1000;
std::vector tree[maxn];
int indeg[maxn];
int root;
int ancestor[maxn];
bool vst[maxn];
void BuildTree(int no
原创
2014-12-17 19:22:36 ·
214 阅读 ·
0 评论