提交时间:2024-12-24 15:00:42
运行 ID: 50508
a=int(input()) b=input() c=8 if a>=1000: while a>1000: a=a-500 c=c+4 if b=="y": c=c+5 print(c)