intmain() { int n,v;//n为数目,v为背包上限 cin >> n >> v; for (int i = 1; i <= n; i++) cin >> c[i];//价值 for (int i = 1; i <= n; i++) cin >> w[i];//体积 cout<<make(n,v)<<endl; //while(1); cout<<BagVer1(n,v)<<endl; cout<<BagVer2(n,v)<<endl; cout<<BagVer3(n,v)<<endl; return0; }