Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
50591 嵇锟 【选】邮费计算 Python3 解答错误 0 172 MS 13528 KB 220 2024-12-24 15:23:46

Tests(0/5):


weight, choice = input().split() weight = int(weight) if weight <= 1000: fee = 8 else: extra_weight = weight - 1000 fee = 8 + (extra_weight + 499) // 500 * 4 if choice == "y": fee += 5 print(fee)


测评信息: