Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79334 彭士宝 输出学生成绩 Python3 Accepted 38 MS 3768 KB 341 2024-07-03 20:47:11

Tests(1/1):


Code:

students_scores = [] for _ in range(3): scores = list(map(int, input().split())) students_scores.append(scores) n = int(input()) total_scores = sum([sum(student_scores) for student_scores in students_scores]) average_score = total_scores / (3 * 4) print("%.2f" % average_score) print(" ".join(map(str, students_scores[n])))