There are X, Y, Z. How many different amounts from 1 to N can I make with them?

后端 未结 0 1582
小蘑菇
小蘑菇 2021-01-25 00:20

I have written a program:

N = int(input())
X, Y, Z = map(int, input().split())
change = [X, Y, Z]


def changes(amount, coins):
    ways = [0] * (amount + 1)
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题