Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118774 胡海峰老师 统计硬币 Python3 Runtime Error 3993 MS 3748 KB 413 2025-05-10 14:30:40

Tests(0/1):


Code:

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): for two in range(coin): for five in range(coin): if one+two + five ==coin and one*1 + two*2 + five*5== amount: res +=1 print(res)


Run Info:

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