Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
50605 李沐 【选】邮费计算 Python3 Wrong Answer 0 172 MS 13520 KB 227 2024-12-24 15:33:01

Tests(0/5):


weight,urgent=input().split() weight=int(weight) urgent=True if urgent=="y" else False cost=8 if weight>1000: extra_weight=weight-1000 num_500=(extra_weight+499)//500 cost+=num_500*4 if urgent: cost+=5 print(cost)


Judgement Protocol: