1839: 货币系统

Memory Limit:256 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:3

Description

给你一个n种面值的货币系统,求组成面值为m的货币有多少种方案。

Input

第一行为n和m。

Output

一行,方案数。

Sample Input Copy

3 10
1 
2
5

Sample Output Copy

10

Source/Category