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

2016年12月21日

01 背包找装满方案数 洛谷 p1164 小a点菜
摘要: #includeusing namespace std;int n,m;int f[9999];int a[9999];int main(){ scanf("%d%d",&n,&m); for(int i=1;i=a[i];j--) f[j]=f[j]+f[j-a... 阅读全文
posted @ 2016-12-21 15:57 wspl98765 阅读(122) 评论(0) 推荐(0)
 
01 找最大剩余体积 洛谷1049 装箱问题
摘要: #include#includeusing namespace std;int n,m;int f[20005];int a[99990];int main(){ scanf("%d%d",&m,&n); for(int i=1;i=a[i];j--) if(f[... 阅读全文
posted @ 2016-12-21 15:55 wspl98765 阅读(100) 评论(0) 推荐(0)
 
洛谷 p1880 石子合并 区间dp
摘要: 这里写链接内容 错误程序#include#includeusing namespace std;int n;int a[9999];int s[9999],f1[999][999]; int f2[999][999];int main(){ scanf("%d",&n); ... 阅读全文
posted @ 2016-12-21 14:30 wspl98765 阅读(119) 评论(0) 推荐(0)
 
 

公告


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