2011年8月19日

ACM PKU 1470 Closest Common Ancestors

摘要: //题目描述:http://poj.org/problem?id=1470#include <iostream>#include <cstring>#include <cstdio>using namespace std;const int MAXN=1009;int size,dep;int N,Q;int box[MAXN],ecnt;int depth[MAXN],c[MAXN],pos[MAXN];bool flag[MAXN];int a[20][2*MAXN],ans[MAXN];struct node{ int to,next;} e[MAXN 阅读全文

posted @ 2011-08-19 19:46 _Clarence 阅读(80) 评论(0) 推荐(0) 编辑

导航