0-1背包问题; #include<iostream> #include<cstdio> using namespace std; const int maxm=1001; const int maxn=101; int dp[maxm]; int price[maxn]; int point[maxn]; int main(){ int C,N; while(~scanf("%d%d",&C,&N)){ for(int ...