会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
落花人独立,微雨燕双飞
一个ACMer
博客园
首页
新随笔
联系
订阅
管理
2020年5月31日
ZUCC2129 The Tree of Power(树形DP)
摘要: 树上最大子列和,开一个dp数组表示以当前节点为起点的路线最大能量值为多少,然后就是一些状态的转移。 #include<bits/stdc++.h> using namespace std; const int maxn=2e5+100; typedef long long ll; vector<in
阅读全文
posted @ 2020-05-31 22:24 zlc0405
阅读(121)
评论(0)
推荐(0)
编辑
公告