shunfurh 于 2017.09.05 16:08 提问
- Renovation Problem
The New Year’s Day is comming ! Every family want to make theiir house looks more beautiful , so does Teddy’s . To make his own house looks different from other's , he went to the shop to buy four kinds of tiles . each kind of tiles has different size : 1*1 , 2*2 , 3*3 and 4 * 4, respectively .
The problem is , how many ways there are to tile his floor which has a area of 4*N using these four kinds of tiles ? You can assume that the number of each kind of tiles is enough.
The first line contain a T. followed by T lines ,each line contain a integer N.(1<=N <=100).
For each case, output the ans % 19890907.
- fight_in_dl 2017.09.05 17:31
- caozhy 2017.09.07 23:47