版本比较
背包
正文
增加 15 行删除 0 行
126 行未改动全部展开127128129130131132133134135136137138139140141142143144145126 行未改动全部展开 } }}```# 树形背包
背包样的树形dp,没有统一模板,通常是物品价值与树的形态相关。
## [P3177 [HAOI2015] 树上染色](https://www.luogu.com.cn/problem/P3177)
# 有依赖的背包
# 杂项
## 求背包k优解
### [P1858 多人背包](https://www.luogu.com.cn/problem/P1858)
## 求背包方案数