提交时间:2025-06-03 15:17:20
运行 ID: 57701
weight = int(input()) urgent = input().strip() base = 8 if weight > 1000: over = weight - 1000 units = (over + 499) // 500 base += units * 4 total = base + (5 if urgent == 'y' else 0) print(total)