Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119150 | 韩潞琪 | 输出不及格学生的成绩 | C++ | Wrong Answer | 1 MS | 268 KB | 696 | 2025-05-17 09:17:29 |
#include<bits/stdc++.h> using namespace std; int main() { int a[4],b[4],c[4]; cin>>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]<<' '; } cout<<endl; break; } } for(int i=0;i<=4;i++){ if(b[i]<60){ for(int j=0;j<4;j++){ cout<<b[j]<<' '; } cout<<endl; break; } } for(int i=0;i<=4;i++){ if(c[i]<60){ for(int j=0;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-----
70 80 87 80 40 89 100 88 77 0 1 0