提交时间:2024-12-24 15:23:46
运行 ID: 50591
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)