Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57855 孙一铭 【选】邮费计算 Python3 Accepted 100 41 MS 4452 KB 125 2025-06-24 16:13:51

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: