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

2014年10月3日

hdu 4778 Gems Fight!(状态压缩DP)
摘要: 又是一道状态压缩,刚开始老是往博弈的方法想,总是没思路。#include #include #include #include using namespace std;const int N=21;const int inf=0x3f3f3f3f;int g,n,s;int sum[1<<N];in... 阅读全文
posted @ 2014-10-03 02:11 asdflkj 阅读(190) 评论(0) 推荐(0)
 
hdu 5036 Explosion
摘要: 学了下bitset#include #include #include using namespace std;const int N=1005;bitseta[N];int t,n,cas=1,c;int main(){ cin>>t; while(t--){ scanf... 阅读全文
posted @ 2014-10-03 02:08 asdflkj 阅读(431) 评论(0) 推荐(0)
 
 

公告


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