Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
50602 李沐 【选】邮费计算 Python3 解答错误 0 176 MS 13516 KB 268 2024-12-24 15:29:53

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)


测评信息: