会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SWHsz
夏虫不可语冰
博客园
首页
新随笔
订阅
管理
2018年10月5日
[HAOI2008]硬币购物
摘要: 容斥+背包。 先做完全背包,然后就去掉用的硬币大于限量的,用容斥原理去下重就行了。 #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N=100005; int c[5],T
阅读全文
posted @ 2018-10-05 19:45 SWHsz
阅读(127)
评论(0)
推荐(0)
公告