Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109051 陈铎文 输出不及格学生的成绩 C++ Wrong Answer 0 MS 268 KB 775 2025-01-25 10:01:48

Tests(0/1):


Code:

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


Run Info:

------Input------
55 77 80 70 80 87 80 81 40 89 100 88
------Answer-----
55 77 80 70 40 89 100 88
------Your output-----
55 77 80 70 80 87 80 81 40 89 100 88