摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1248唉。。。这题,我不会完全背包问题,只能暴力了,还好数据比较弱,果断过了,但是用暴力方法过的感觉很不爽啊。代码如下:#include"stdio.h"int main( ){ int i,j,k,n,a,b,c,t; int max,x,y,z; scanf("%d",&t); while(t--) { scanf("%d",&n); max=0; a=n/150;b=n/200;c=n/350; for(i=0;i<=.. 阅读全文
posted @ 2012-05-10 14:59 朝圣の路 阅读(430) 评论(0) 推荐(0) 编辑