#t299. 骨牌铺法(domino)
骨牌铺法(domino)
Domino Tiling
Problem Background
Special for beginners, ^_^
Problem Description
There is a rectangle. We want to tile it completely using , , and dominoes. For example, when it is a rectangle. At this time, tiling it with , , and dominoes gives four tiling methods, as shown in the figure below:

Input Format
An integer , representing the rectangle.
Output Format
One integer, the number of ways to tile the given rectangle.
Sample Input 1
3
Sample Output 1
4
Constraints
1s, 1024KiB for each test case.