提交时间:2024-12-24 15:20:13
运行 ID: 50580
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)