Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74120 张智博 统计硬币 Python3 Wrong Answer 31 MS 3752 KB 186 2024-05-22 21:47:01

Tests(0/1):


Code:

n,m =map(int,input().split()) cnt =0 for a in range(n+1): for b in range(n+1): c = n-a-b if a*1+b*2+c*5 == m: cnt += 1 print(cnt)


Run Info:

------Input------
20 5 10 8 20 3 6 2 4 10 26 11 27 1 1 1 2 2 2 1 5 5 25 100 250 1000 3000 26 120 9 30 12 27 7 25 27 54 32 100 4 13
------Answer-----
2 2 1 1 3 3 1 1 1 1 1 21 167 1 2 3 1 7 6 1
------Your output-----