会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Schenker
博客园
首页
新随笔
联系
管理
订阅
2019年5月11日
CodeForces 592D Super M DP
摘要: Super M 题解: 定义 dp[u][0] 为遍历完u中的所有节点, 但不回到u点的路径花费值。 定义 dp[u][1] 为遍历完u中的所有节点, 且要回到u点的路径花费值。 转移方程. dp[u][1] = sum(dp[v][1] + 2). dp[u][0] = max(dp[v][1]
阅读全文
posted @ 2019-05-11 15:26 Schenker
阅读(201)
评论(0)
推荐(0)
编辑
公告