#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <string>
#include <stdio.h>
#include <cstring>
#include <algorithm>
using namespace std;
vector<int> w,p;
int *cache[11];
void init(int n,int c);
void dp(int n,int c);
void show(int n,int c);
int main(){
int n, c;
vector<int> res;
while(cin >> n>>c){
if(n == 0
NOJ 1004 1-0背包问题
最新推荐文章于 2020-11-18 22:26:45 发布