ACM: 动态规划题 poj 2411
来源:互联网 发布:金山tw域名遭抢注 编辑:程序博客网 时间:2024/06/08 14:14
Expert as he was in this material, he saw at a glance that he'llneed a computer to calculate the number of ways to fill the largerectangle whose dimensions were integer values, as well. Help him,so that his dream won't turn into a nightmare!
Input
Output
Sample Input
1 2
1 3
1 4
2 2
2 3
2 4
2 11
4 11
0 0
Sample Output
1
0
1
2
3
5
144
51205
题意: 用长为2, 宽为1的小矩形, 铺满n*m的大矩形, 计算有多少种方法.
解题思路:
代码:
#include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;
#define MAX 12
int n, m, e;
__int64 dp[2][1<<MAX];
void init(int d, int mm)
{
}
void DP(int d, int from, int to)
{
}
int main()
{
//
}
- ACM: 动态规划题 poj 2411
- ACM: 简单动态规划题 poj 2955
- ACM: 动态规划题 poj 2241
- ACM: 动态规划题 poj 1054
- ACM: 动态规划题 poj 2948
- ACM: 动态规划题 poj 1925
- ACM: 动态规划题 poj 3034
- ACM: 动态规划题 poj 1947
- ACM: 动态规划题 poj 2486
- ACM: 动态规划题 poj 3140
- ACM: 动态规划题 poj 3659
- ACM: 动态规划题 poj 2923
- ACM: dp动态规划题(难) poj 3267 …
- ACM: dp题(动态规划) poj 2151 (d…
- ACM: 树状DP 动态规划题 poj 1463 …
- ACM: 动态规划题 poj 2057 树状DP
- ACM:动态规划题 poj 1015
- ACM: 动态规划题 poj&nb…
- ACM: 树状数组 poj 2029 动态规划…
- ACM: 动态规划题 poj 2948
- ACM: 动态规划题 poj 1925
- ACM: 动态规划题 poj 3034
- ACM: 动态规划题 poj 3254 学习状…
- ACM: 动态规划题 poj 2411
- 埃拉托斯特尼筛法求素数
- 兴趣学习: 摆脱“三天打渔两天晒网”…
- ACM: 动态规划题 poj 1185 想了两…
- windows.h
- ACM: 动态规划题 poj 2057 树状DP
- ACM: 动态规划题 poj 1947
- ACM: 动态规划题 poj 2486
- ACM: 动态规划题 poj 3140