| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 50467 | 付子涵 | 2023经开区信息技术合格性考试-1 | Python3 | 解答错误 | 0 | 42 MS | 4432 KB | 337 | 2024-12-24 14:48:46 |
def calculate_discount(total_amount): if total_amount >= 4000: discount = 0.60 elif total_amount >= 3000: discount = 0.70 elif total_amount >= 2000: discount = 0.80 else: discount = 1.00 discounted_amount = total_amount * discount return round(discounted_amount, 1)