Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128325 徐王子 输出不及格学生的成绩 C++ Presentation Error 4 MS 4184 KB 356 2025-08-15 08:42:34

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[1001][1001]={0}; bool b[1001]={false}; for(int i=1;i<=3;i++){ for(int j=1;j<=4;j++){ cin>>a[i][j]; if(a[i][j]<60){ b[i]=true; } } } for(int i=1;i<=3;i++){ for(int j=1;j<=4;j++){ if(b[i]==true){ cout<<a[i][j]<<" "; } } cout<<endl; } }