会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Loading
George1123
My vegetable has exploded.
博客园
首页
新随笔
联系
订阅
管理
2020年6月4日
题解-SHOI2005 树的双中心
摘要: 给树 $T=(V,E)(|V|=n)$,树高为 $h$,$w_u(u\in V)$。求 $x\in V,y\in V:\left(\sum_{u\in V}w_u\cdot \min(dis_{u,x},dis_{u,y})\right)_{\min}$。 数据范围:$1\le n\le 50000$,$1\le h\le 100$。
阅读全文
posted @ 2020-06-04 14:56 George1123
阅读(134)
评论(0)
推荐(3)
编辑
公告