| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 50598 | 白京轩 | 【选】邮费计算 | Python3 | 解答错误 | 0 | 43 MS | 4452 KB | 349 | 2024-12-24 15:28:08 |
weight = int(input()) is_urgent = input() base_fee = 8 if weight <= 1000: fee = base_fee else: extra_weight = weight - 1000 # 计算超重部分需要额外加收的费用,不足500克部分按500克计算 extra_fee = (extra_weight + 499) // 500 * 4 fee = base_fee + extra_fee if is_urgent == 'y': fee += 5