思路:动态规划
对应代码实现:Python
# -*- coding:utf8 -*-
def split_money(n):
money = [1, 5, 10, 20, 50, 100]
dp = [0] * (n + 1)
dp[0] = 1
for one in money:
for j in range(one, n + 1):
dp[j] += dp[j - one]
return dp[n]
print(split_money(eval(input())))