数字组合
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
在N个数中找出其和为M的若干个数。先读入正整数N()和M(), 再读入个正数(可以有相同的数字,每个数字均在以内),
在这N个数中找出若干个数, 使它们的和是, 把满足条件的数字组合都找出来以统计组合的个数,输出组合的个数(不考虑组合是否相同)。
Format
Input
第一行是两个数字,表示N和M。
第二行起是N个数。
Output
就一个数字,表示和为M的组合的个数。
Samples
输入样例
4 4
1 1 2 2
输出样例
3
Limitation
1s, 1024KiB for each test case.