intmain() { int n,W;//n为数目,v为背包上限 cin >> n >> W; for (int i = 1; i <= n; i++) cin >> v[i];//价值 for (int i = 1; i <= n; i++) cin >> w[i];//重量 //while(1); cout<<fullbagVer1(n,W)<<endl; cout<<fullbagVer2(n,W)<<endl; cout<<fullbagVer3(n,W)<<endl; return0; }