Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57852 张书贤 【选】邮费计算 Python3 Accepted 100 42 MS 4468 KB 118 2025-06-24 16:10:25

Tests(5/5):


n=int(input()) x=input() ans=8 if x=="y": ans=ans+5 if n>1000: ans=ans+(n-1000+499)//500*4 print(ans)


Judgement Protocol: