#t410. 数字组合

数字组合

Counting Combinations

Background

Special for beginners, ^_^

Problem Description

There are nn positive integers. Find the number of possible ways to choose some of them whose sum is tt (where tt is also a positive integer). For example:

n=5n=5, the 55 numbers are 1,2,3,4,51, 2, 3, 4, 5, and t=5t=5.

Then the possible combinations are 5=1+45=1+4, 5=2+35=2+3, and 5=55=5, three combinations.

Input Format

The first line contains two positive integers nn and tt, separated by a space, where 1≤n≤201 \le n \le 20 is the number of positive integers and tt is the required sum (1≤t≤10001 \le t \le 1000).

The next line contains nn positive integers separated by spaces.

Output Format

The number of different combinations whose sum is tt.

Sample Input 1

5 5
1 2 3 4 5

Sample Output 1

3

Constraints

1s, 1024KiB for each test case.