会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Neworld1111
By hcf
首页
新随笔
管理
随笔分类 -
树的直径
树的直径模板
摘要:代码 树的直径 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)
公告