75 人解决,85 人已尝试。
104 份提交通过,共有 389 份提交。
3.4 EMB 奖励。
单点时限: 1.0 sec
内存限制: 256 MB
In a strange shop there are
For example, suppose there are three coins
So, 5 can be made in 4 ways.
Input starts with an integer
Each case starts with a line containing two integers
For each case, print the case number and the number of ways
2 3 5 1 2 5 4 20 1 2 3 4
Case 1: 4 Case 2: 108