会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
suuusu
Sometimes it takes some patience, sometimes it works first try. But I know that this is worth it,cause this dream's too strong to die.
博客园
首页
新随笔
联系
订阅
管理
2019年6月4日
POJ_1143 Number Game (状态压缩+记忆化搜索DFS)
摘要: 题目分析: 给定可选数序列a(n个数)1<=n<=20 2<= a[i] <=20 我们和对方轮流选数,当前轮到我们。 状态压缩:①n位二进制数x(0代表可选,1代表不可选) ②轮到谁turn (turn=true轮到我们 反之轮到对方) 状态存储:int state[maxX][2] maxX为2
阅读全文
posted @ 2019-06-04 18:59 suuusu
阅读(174)
评论(0)
推荐(0)
编辑
公告