POJ 1276 Cash Machine (完全背包问题)
摘要:
题意:给出一个价值sum,然后给出n,代表n个方案,接着n对代表个数与价值,要求最接近sum,但不超过sum的价值。#include #include #include #include using namespace std;int dp[100010];int main(){ ... 阅读全文
posted @ 2015-03-22 21:27 王老大- 阅读(127) 评论(0) 推荐(0) 编辑