树的直径
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 · 95 阅读 · 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 · 139 阅读 · 0 评论