Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118777 | 胡海峰老师 | 统计硬币 | Python3 | Accepted | 329 MS | 3764 KB | 356 | 2025-05-10 14:34:11 |
n = int(input()) for x in range(n): coin,amount = input().split() #硬币#金额 coin,amount = int(coin),int(amount) res = 0 #符合条件的组合数 for one in range(coin+1): for two in range(coin+1): five = coin-one-two if one*1 + two*2 + five*5== amount: res +=1 print(res)