| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 37029 | 杨嘉宇 | 2023经开区信息技术合格性考试-1 | Python3 | 解答错误 | 0 | 40 MS | 4472 KB | 494 | 2024-01-09 15:47:38 |
def calculate_payment_amount(total_amount): if total_amount < 2000: return total_amount elif total_amount < 3000: return total_amount * 0.8 elif total_amount < 4000: return total_amount * 0.7 else: return total_amount * 0.6 # 测试 total_amount = int(input("请输入购买商品的总金额:")) actual_payment = calculate_payment_amount(total_amount) print("实际需要支付的金额为:{:.1f}".format(actual_payment))