Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146285 潘佳慧 14小鱼游泳 Python3 Accepted 36 MS 3760 KB 376 2026-01-27 21:05:31

Tests(10/10):


Code:

x,n=map(int,input().split()) m=250*max((6-x),0)+(n-8+x)//7*5*250+min(((n-8+x)%7),5)*250 '''if 1<=x <=6: if (n-8+x)%7==6: m=250*(6-x)+(n-8+x)//7*5*250+5*250 else: m=250*(6-x)+(n-8+x)//7*5*250+(n-8+x)%7*250 elif x==7: if (n-8+x)%7==6: m=0+(n-8+x)//7*5*250+5*250 else: m=0+(n-8+x)//7*5*250+(n-8+x)%7*250''' print(m)