Use the following tiles:
to tile a floor of size 5*n.
Given n, how many ways are there to do so?
The first line contain an integer T, indicating the number of testcases.
In the next T line each describe one testcase. Each line has a single integer N, indicating the the size of the floor is 5*N.
For each N, output an integer on a single line: the number of ways mod 123456789.
2 3 4
62 0
Migrated from old NTUJ.
Mathematika'09
No. | Testdata Range | Score |
---|