摘要:        
题意:最多能买多少东西。完全背包。连接:http://acm.hdu.edu.cn/search.php?action=listproblemView Code #include <iostream>using namespace std;const int MAX=10000+10;int w[5];int dp[MAX];int cmp(int a,int b){ return a>b?a:b;}int main(){ int n,m; w[1]=150,w[2]=200,w[3]=350; while(~scanf("%d",&m)) { w    阅读全文
            
                posted @ 2012-09-13 20:41
Keep Strive
阅读(453)
评论(0)
推荐(0)
            
         
                    
                 
 2012年9月13日
        2012年9月13日