Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
121004 | 赵天瑜 | 输出满足条件的成绩 | Python3 | Compile Error | 0 MS | 0 KB | 322 | 2025-06-03 20:50:38 |
# 存储所有学生数据 students = [] for _ in range(50): data = input().split() student_id = data[0] score = int(data[1]) students.append((student_id, score)) # 筛选并输出成绩≥80的学生 for student in students: if student[1] >= 80: print(f"{student[0]} {student[1]}")
File "Main.py", line 12 print(f"{student[0]} {student[1]}") ^ SyntaxError: invalid syntax