正文
增加 2 行删除 2 行
85 行未改动86878889909192939436 行未改动13113213313413513613713813932 行未改动85 行未改动------------## 完全背包拓展- 多种应用:#### 1.[P1832](https://www.luogu.com.cn/problem/P1832)#### 2.[P1679](https://www.luogu.com.cn/problem/P1679)------------36 行未改动if(z){w[++cnt] = x * z;v[cnt] = y * z;}}for(int i = 1; i <= cnt; i++){for(int j = M; j >= w[i]; j--){f[j] = max(f[j], f[j - w[i]] + v[i]);32 行未改动85 行未改动86878889909192939436 行未改动13113213313413513613713813932 行未改动85 行未改动------------## 完全背包拓展- 多种应用:#### 1.[P1832](https://www.luogu.com.cn/problem/P1832)#### 2.[P1679](https://www.luogu.com.cn/problem/P1679)------------36 行未改动if(z){w[++cnt] = x * z;v[cnt] = y * z;}}for(int i = 1; i <= cnt; i++){for(int j = M; j >= w[i]; j--){f[j] = max(f[j], f[j - w[i]] + v[i]);32 行未改动