随笔分类 -  树上DP

摘要:树上DP入门题 dp[][0]表示不选他且以他为根的子树的最大快乐值 dp[][1]表示选他且以他为根的子树的最大快乐值 转移方程 .... 看代码吧 // luogu judger enable o2 include include include include using namespace 阅读全文
posted @ 2018-07-26 20:35 Coool 阅读(95) 评论(0) 推荐(0)