1390专题

题目1390:矩形覆盖

题目描述: 我们可以用2*1的小矩形横着或者竖着去覆盖更大的矩形。请问用n个2*1的小矩形无重叠地覆盖一个2*n的大矩形,总共有多少种方法? 输入: 输入可能包含多个测试样例,对于每个测试案例, 输入包括一个整数n(1<=n<=70),其中n为偶数。 输出: 对应每个测试案例, 输出用n个2*1的小矩形无重叠地覆盖一个2*n的大矩形,总共有的方法数。 递推关系:

Blocks(poj 1390) 动态规划 方盒游戏 (升维——三维)

Blocks  点击转到 Time Limit: 5000MS Memory Limit: 65536KTotal Submissions: 6197 Accepted: 2557 Description Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has