#P2382. Best Action Group

Best Action Group

题目描述

QLU will hold an activity, number for custom with n, the scoring system is adopted, total score for m, the students have their own score, only together equal the sum of the scores that Numbers can obtain corresponding prizes, but a lot of people want to attend this activity, the school wants to make the classmate of everyone can get prizes, So I asked you to do this task, and I asked you to write a program to solve this problem

输入格式

The first row has two numbers n,m,the second row corresponds to n numbers

输出格式

Number of corresponding schemes

样例

4 4 
1 1 2 2
3
2 2 
1 1
1

提示

It's a fun problem. It's very easy

By TOP