n, aim = map(int, input().split())
nums = list(map(int, input().split()))
dp = [0] * (aim + 1)
dp[0] = 1
for i in range(n):
for j in range(nums[i]
展开全文
话不多说上代码。解释书上有。import java.util.Scanner; public class Main{public static final int mod = 1_000_000_007; public static int coins1(int[] arr, int aim){
展开全文