01背包问题 #include<bits/stdc++.h> using namespace std; const int mod =1000000007; //背包问题的演变(只不过是两种物品,每种物品得) vector<vector<int>> dp(1001,vector<int>(210,0)); int main(){ int k, a,x,b,y; cin>>k; cin>>a>>x>>b>>y; int length = x+y; ...