随笔分类 -  acwing / 完全背包

摘要:题目描述 有n中面值的货币,每种有无限个,问组成m的方案总数? f1-xxx 完全背包求方案数 完全背包裸题 代码 #include <iostream> #include <algorithm> using namespace std; typedef long long LL; const in 阅读全文
posted @ 2023-03-30 15:26 zhangk1988 阅读(13) 评论(0) 推荐(0) 编辑
摘要:题目描述 书有4种,每种价格不同,每本书可以无限买,问刚好花m块钱的方案数? f1-完全背包 基本分析 完全背包裸题 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const i 阅读全文
posted @ 2023-03-30 15:01 zhangk1988 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示