随笔分类 -  *数据结构---LCA

摘要:Nearest Common Ancestors POJ - 1330 题意:找两个点公共祖先,裸题。 1 #include <cstdio> 2 #include <cstring> 3 const int maxn=10010; 4 5 int f[maxn],vis[maxn]; 6 7 in 阅读全文
posted @ 2017-09-06 17:33 yijiull 阅读(140) 评论(0) 推荐(0)