Hide
Problem D
Tri Tiling

In how many ways can you tile a
Here is a sample tiling of a
Input consists of several test cases followed by a line
containing -1. Each test case is a line containing an integer
Sample Input 1 | Sample Output 1 |
---|---|
2 8 12 -1 |
3 153 2131 |