#Lutece1729. 序列计数
序列计数
Migrated from Lutece 1729 序列计数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
有若干张颜色不同的骨牌,其中大小为的骨牌有种,每种骨牌都可以无限量使用。用骨牌不重叠地铺满一排的方格,共有多少种方法?
Input
第一行包含一个整数
接下来一行包含个整数,分别表示
数据保证:
Output
输出个数表示时的答案,因为答案可能较大,因此只需要输出其在意义下的值即可.
Samples
5
1 8 7 4 6
1 9 24 107 372
Resources
Prepared by xiper