首页 > TAG信息列表 > 2602

Bone Collector (HDU - 2602 )

Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave …The bone collector had a big bag with a volume of V ,and along his trip o

51Nod 2602 树的直径

题目链接:51Nod 2602 树的直径 题目大意: 题解: 两遍\(dfs\),第一遍从根开始找到最深的结点,第二遍从最深的结点开始得到树的直径。 #include <cstring> #include <iostream> using namespace std; struct Edge { int v, next; } edge[200010]; int head[100010], cnt; int n, di