随笔分类 -  树的直径

摘要:代码 树的直径 cpp //solution dp include define N 10010 using namespace std; struct Edge{ int u,v,next,w; }G[N 2]; int tot=0,head[4 N],dp1[N],dp2[N]; //dp1[u 阅读全文
posted @ 2018-02-23 13:21 Neworld1111 阅读(258) 评论(0) 推荐(0)