poj2411
来源:互联网 发布:淘宝网正品手提包女 编辑:程序博客网 时间:2024/06/05 16:17
#include
#include
using namespace std;
int tran[14000][2];
double b[13][2100];
int h,w,tra;
void dfs(int i,int from,int to){
if(i>w) return;
if(i==w){
tran[tra][0]=from;
tran[tra++][1]=to;
return;
}
dfs(i+2,(from<<2)+3,(to<<2)+3);
dfs(i+1,(from<<1)+1,to<<1);
dfs(i+1,from<<1,(to<<1)+1);
}
void dp(){
b[0][(1<<w)-1]=1;
for(int i=1;i<=h;i++)
}
int main(){
if(h
int t=h;
h=w;
w=t;
}
tra=0;
dfs(0,0,0);
dp();
printf("%.0f\n",b[h][(1<<w)-1]);
}
0 0
- poj2411
- poj2411
- poj2411
- poj2411
- POJ2411
- POJ2411
- Poj2411 状态压缩
- POJ2411 状态DP...
- POJ2411 Mondriaan's Dream
- POJ2411--Mondriaan's Dream
- poj2411 DP压缩
- POJ2411 Mondriaan's Dream
- POJ2411 状态压缩DP
- poj2411(状压dp)
- poj2411 轮廓线dp
- poj2411 状态压缩dp
- poj2411 Mondriaan's Dream
- POJ2411(状态压缩DP)
- poj2301
- poj2328
- poj2350
- poj2363
- poj2390
- poj2411
- poj2459
- poj2470
- poj2498
- poj2501
- poj2535
- poj2538
- 第六周阅读
- poj2551