Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149993 王峻熙 输出不及格学生的成绩 C++ Presentation Error 1 MS 268 KB 779 2026-03-21 15:53:25

Tests(0/1):


Code:

#include<iostream> using namespace std; int main(){ int a[4]={},b[4]={},c[4]={}; for(int i=0;i<4;i++){ cin>>a[i]; } for(int i=0;i<4;i++){ cin>>b[i]; } for(int i=0;i<4;i++){ cin>>c[i]; } for(int i=0;i<4;i++){ if(a[i]<60){ for(int j=0;j<4;j++){ cout<<a[j]<<" "; } break; } } for(int i=0;i<4;i++){ if(b[i]<60){ for(int j=0;j<4;j++){ cout<<b[j]<<" "; } break; } } for(int i=0;i<4;i++){ if(c[i]<60){ for(int j=0;j<4;j++){ cout<<c[j]<<" "; } break; } } return 0; }