Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
50580 左小满 【选】邮费计算 Python3 通过 100 42 MS 4468 KB 202 2024-12-24 15:20:13

Tests(5/5):


weight = int(input()) is_urgent = input() cost = 8 if weight > 1000: extra_weight = weight - 1000 cost += ((extra_weight + 499) // 500) * 4 if is_urgent == 'y': cost += 5 print(cost)


测评信息: