Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118779 | 杨嘉陆 | 统计硬币 | Python3 | Accepted | 305 MS | 3764 KB | 256 | 2025-05-10 14:39:00 |
t=int(input()) for x in range(t): n,m=input().split() n,m=int(n),int(m) a=0 for one in range(n+1): for two in range(n+1): five=n-one-two if one*1+two*2+five*5==m: a+=1 print(a)