Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78390 张智博 输出学生成绩 Python3 Compile Error 0 MS 0 KB 333 2024-06-19 20:17:28

Tests(0/0):


Code:

def calculate_scores(): scores = [] for _ in range(3): scores.append(list(map(int, input().split()))) n = int(input()) total_average = sum(sum(student) for student in scores) / (len(scores) * len(scores[0])) print(f"{total_average:.2f}") print(' '.join(map(str, scores[n]))) calculate_scores()


Run Info:

  File "Main.py", line 7
    print(f"{total_average:.2f}")
                               ^
SyntaxError: invalid syntax