Poj1330Nearest Common Ancestors LCA
摘要:
题意给一颗树,再给一个查询两点之间的最近公共祖先。#include#include#include#include#includeusing namespace std;const int maxn = 111111;struct edge{ int to; int next;}e[maxn ... 阅读全文
posted @ 2014-11-08 16:14 一个西瓜 阅读(185) 评论(0) 推荐(0)
浙公网安备 33010602011771号