| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151038 | 李吴凡 | 08打车费用 | Python3 | Compile Error | 0 MS | 0 KB | 210 | 2026-04-03 20:07:15 |
n = int(input()) ans = 0 if n <= 2: ans = 6 elif n <= 10: ans = 6 + (n - 2) * 1.8 else: ans = 6 + 8 * 1.8 + (n - 10) * 2.7 if int(ans) == ans: print(int(ans)) else: print(f'{ans:.1f}')
File "Main.py", line 14
print(f'{ans:.1f}')
^
SyntaxError: invalid syntax