選課(揹包類樹形dp)

即在樹上作揹包html #include<cstdio> #include<cstring> #include<algorithm> using namespace std;   struct my{         int next;         int v; };   const int maxn=1000+10;   int adj[maxn],fa,n,m,dp[maxn][maxn]
相關文章
相關標籤/搜索