Problem Description
Loading...
Problem Analysis
For the n-th one, it can come from the (n-1)-th arrangement plus one vertical domino, or from the (n-2)-th arrangement with two horizontal dominoes
So f(n) = 1×f(n-1) + 1×f(n-2);
So it is similar to the Fibonacci sequence
cpp
| |
Problem link:【HDU】[2046] Domino Paving Squares