版本比较
dp(背包+线性+区间+树形+状压)
正文
增加 1 行删除 1 行
9 行未改动101112131415161718134 行未改动全部展开9 行未改动### 一维代码```#include<bits/stdc++.h>using namespace std;int m,n,dp[1001],w[101],c[101];int main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);cin>>m>>n;134 行未改动全部展开9 行未改动101112131415161718134 行未改动全部展开9 行未改动### 一维代码```#include<bits/stdc++.h>using namespace std;int m,n,dp[1001],w[101],c[101];int main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);cin>>m>>n;134 行未改动全部展开