LCA -- POJ1330 Nearest Common Ancestors (C++)
Nearest Common AncestorsLCA求最近公共祖先Nearest Common Ancestors#include <iostream>#include <vector>#include <cstring>using namespace std;const int LCA_N=10001;int n,m,q;vector&...
原创
2019-08-08 13:00:12 ·
480 阅读 ·
2 评论