摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2152 母函数: 代码: #include<stdio.h> #include<string.h> int main(){ int c1[120],c2[120],min[120],max[120]; i 阅读全文
posted @ 2014-11-26 22:37 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: 简单的背包题 ;好无奈,我又没做出来在考试的时候 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; double dp[60],money[60]; double total; int 阅读全文
posted @ 2014-11-26 13:18 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)