#585. 数字组合

数字组合

Background

Special for beginners, ^_^

Description

nn 个正整数,找出其中和为 tttt 也是正整数)的可能的组合方式。如:

n=5n=555 个数分别为 1,2,3,4,51,2,3,4,5t=5t=5

那么可能的组合有 5=1+45=1+45=2+35=2+35=55=5 三种组合方式。

Format

Input

输入的第一行是两个正整数 nntt,用空格隔开,其中1n201≤n≤20,表示正整数的个数,tt 为要求的和(1t1000)(1≤t≤1000);

接下来的一行是 nn 个正整数,用空格隔开。

Output

和为 tt 的不同的组合方式的数目。

Samples

5 5
1 2 3 4 5
3

Limitation

1s, 1024KiB for each test case.