会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
f2021yjm
这个家伙很懒,什么都没留下
博客园
首页
新随笔
联系
订阅
管理
2023年2月3日
动规B—背包&树形dp
摘要: A. 数字组合. 在 $N$个数中找出其和为 $M$ 的若干个数,把满足条件的数字组合都找出来以统计组合的个数,输出组合的个数 类似0/1背包,恰好装满背包的方案数 #include <bits/stdc++.h> #define per(i,a,b) for(int i(a);i<=b;++i)
阅读全文
posted @ 2023-02-03 20:59 f2021yjm
阅读(15)
评论(0)
推荐(0)
编辑
公告