P2014
P2014 [CTSC1997] 选课
原题链接 一道经典树形dp,你会了二叉苹果树那么这个也会了 细节已写在代码里,一定要清楚设的变量和函数的含义 code #include<bits/stdc++.h> using namespace std; int s[305]={0}; vector<int> son[305]; int ans ......
【树上背包】洛谷P2014 [CTSC1997] 选课
# 【树上背包】洛谷P2014 [CTSC1997] 选课 题目链接:[P2014 [CTSC1997\] 选课 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn)](https://www.luogu.com.cn/problem/P2014) ## 题目描述 在大学里每个学生,为了 ......