Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67149 展博 短信计费 Python3 Compile Error 0 MS 0 KB 195 2024-03-14 19:06:57

Tests(0/0):


Code:

def tc(word): cost=word//70*0.1 if word%70!=1: cost+=0.1 return cost n=int(input()) a=0 for i in range(n): word=int(input()) a=a+tc(word) print(f'{a:.1f}')


Run Info:

  File "Main.py", line 11
    print(f'{a:.1f}')
                   ^
SyntaxError: invalid syntax