| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135928 | 薛轶凡 | 输出不及格学生的成绩 | C++ | Accepted | 1 MS | 276 KB | 721 | 2025-11-08 17:30:23 |
#include <iostream> using namespace std; const int STUDENTS = 3; const int COURSES = 4; int main() { int scores[STUDENTS][COURSES]; for (int i = 0; i < STUDENTS; i++) { for (int j = 0; j < COURSES; j++) { cin >> scores[i][j]; } } for (int i = 0; i < STUDENTS; i++) { bool hasFailed = false; for (int j = 0; j < COURSES; j++) { if (scores[i][j] < 60) { hasFailed = true; break; } } if (hasFailed) { for (int j = 0; j < COURSES; j++) { cout << scores[i][j] << " "; } cout << endl; } } return 0; }