随笔分类 - acwing / 完全背包
摘要:题目描述 有n中面值的货币,每种有无限个,问组成m的方案总数? f1-xxx 完全背包求方案数 完全背包裸题 代码 #include <iostream> #include <algorithm> using namespace std; typedef long long LL; const in
阅读全文
摘要:题目描述 书有4种,每种价格不同,每本书可以无限买,问刚好花m块钱的方案数? f1-完全背包 基本分析 完全背包裸题 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const i
阅读全文