摘要:
剪枝:当前状态已经存在了,它一定是最优值,直接返回它View Code #include <stdio.h>#define inf 0x3f3f3f3fstruct node{ int num[1000],price;}ar[105];int s,n,a[10],num[1000];int dp[6][6][6][6][6];int min(int x,int y){ return x<y?x:y;}int judge(int i){ int j; for (j=0;j<n;j++) { if(num[a[j]]<ar[i].num[a[j]])re... 阅读全文
posted @ 2011-11-30 20:11
104_gogo
阅读(198)
评论(0)
推荐(0)