comefrom: <doocs>0518.Coin Change 2_1.py
code: def change( amount: int, coins: List[int]) -> int:
      dp = [0] * (amount + 1)
      dp[0] = 1
      for coin in coins:
          for j in range(coin, amount + 1):
              dp[j] += dp[j - coin]
      return dp[-1]
masked: def sample_funcname ( var_0 : int , var_2 : List [ int ] ) -> int :
      var_6 = [ 0 ] * ( var_0 + 1 )
      var_6 [ 0 ] = 1
      for var_7 in var_2 :
          for var_9 in range ( var_7 , var_0 + 1 ) :
              var_6 [ var_9 ] += var_6 [ var_9 - var_7 ]
      return var_6 [ - 1 ]
  