摘要: 代码: 方法一: 这个是根据完全背包的思路来做,但是加了对个数的限制。 #include<iostream> #include<stdio.h> #include<string.h> using namespace std; const int maxn = 1e5+10; int dp[maxn] 阅读全文
posted @ 2020-02-21 14:54 sqsq 阅读(137) 评论(0) 推荐(0) 编辑