Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109054 | 陈铎文 | 输出不及格学生的成绩 | C++ | Wrong Answer | 1 MS | 272 KB | 603 | 2025-01-25 10:07:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[5],b[5],c[5]; 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){ for(int j=1;j<=4;j++){ cout<<a[j]<<" "; } cout<<endl; break; } if(b[i]<60){ for(int j=1;j<=4;j++){ cout<<b[j]<<" "; } cout<<endl; break; } if(c[i]<60){ for(int j=1;j<=4;j++){ cout<<c[j]<<" "; } cout<<endl; break; } } return 0; }
------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