#Lutece1743. 01背包计数
01背包计数
Migrated from Lutece 1743 01背包计数
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
2 3 4 1 5
2
3
10
9
19
Resources
Prepared by xiper