摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1059http://poj.org/problem?id=1014多重背包这个题有两种AC的方法一种是采用多重背包的方法,但是这个方法会超时,所以就加了一个取模(这是错误的地方)来减少时间,这个方法可以AC,但却是错误的 12 0 0 0 0 1 这组数据就不能正确的出结果;View Code 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #include<cstring> 5 u 阅读全文
posted @ 2011-11-25 20:56
LT-blogs
阅读(278)
评论(0)
推荐(0)

浙公网安备 33010602011771号