Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86248 朱正天 统计硬币 Python3 Runtime Error 4008 MS 3776 KB 471 2024-07-23 20:21:41

Tests(0/1):


Code:

T = int(input()) tmp = [] res = [] for i in range(T): a = input().split() tmp.append(a) for i in tmp: count = 0 total = 0 count = int(i[0]) total = int(i[1]) p = 0 for a in range(count+1): for b in range((total+1)//2+1): for c in range((total+1)//5+1): if a + b + c == count and a + 2*b + 5*c == total: p += 1 res.append(p) for i in res: print(i)


Run Info:

Runtime Error:[ERROR] A not allowed system call.
Call ID:511