![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树的直径
cugzyc
Coding && Reading.
展开
-
树的直径
# include < iostream ># include < cstring ># include <queue ># include <vector >const int maxn =100020;using namespace std;int dis[ maxn ],ans;bool vis[ maxn ];vector ...原创 2018-08-04 17:16:43 · 102 阅读 · 0 评论 -
POJ - 1985 G - Cow Marathon【树的直径】
After hearing about the epidemic of obesity in the USA, Farmer John wants his cows to get more exercise, so he has committed to create a bovine marathon for his cows to run. The marathon route will in...原创 2018-08-05 09:33:23 · 157 阅读 · 0 评论