# 难倒是不难,就是有点麻烦,题目长,要按部就班地写 import sys inits = [] commands = [] def withdraw(cash_remain, pocket, out={1:0, 2:0, 5:0, 10:0}): coins = [10, 5, 2, 1] i = 0 while True: if i < 4: coin = coins[i] if cash_remain >= coin and pocket[coin] > 0: ...