Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57854 成若冲 【选】邮费计算 Python3 Accepted 100 40 MS 4452 KB 138 2025-06-24 16:12:09

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: