摘要: 我的代码没有通过,用了完全背包解法#include "iostream"#include "string.h"#include "algorithm"using namespace std;struct { int p,w;}num[1000];int minb(int a,int b){return a>b?b:a;}int main(){ int Case,a,b,weight,n,i,s,m,top,min,j,k,visit[1100],f[1100],t; cin>>Case; while(Case--){ 阅读全文
posted @ 2013-08-21 16:56 龙城星 阅读(139) 评论(0) 推荐(0) 编辑