3389: 货币系统

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

Description

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

Sample Input Copy

3 10        //3种面值组成面值为10的方案
1           //面值1
2           //面值2
5           //面值5

Sample Output Copy

10          //有10种方案