Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118778 | 张亦瑞 | 统计硬币 | Python3 | Accepted | 318 MS | 3768 KB | 298 | 2025-05-10 14:35:21 |
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-two-one if one*1+two*2+five*5==amount: res+=1 print(res)