• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
HT008
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2016年12月21日

P1164 小A点菜(背包方案数模板)
摘要: 点菜哈哈哈 题目链接#include using namespace std;int f[20000],a[20000];int main(){ int n,i,m,j; scanf("%d%d",&n,&m); f[0]=1; for(i=1;i=a[i]... 阅读全文
posted @ 2016-12-21 15:59 ht008 阅读(81) 评论(0) 推荐(0)
 
P1049 装箱问题
摘要: 这是题目 思路一 把质量作为价值,就转化为了01背包#include #include using namespace std;int f[10001],w[10001],v[10001];int main(){ int n,m,i,j; scanf("%d%d",&m... 阅读全文
posted @ 2016-12-21 15:57 ht008 阅读(79) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3