| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122384 | 戴一波 | 输出不及格学生的成绩 | C++ | Wrong Answer | 1 MS | 272 KB | 882 | 2025-06-15 17:23:57 |
#include<iostream> using namespace std; int main(){ // int a[1000]={}; // for(int i=0;i<10;i++){ // cin>>a[i]; // } // for(int i=0;i<10;i++){ // cout<<a[i]<<" "; // } // cout<<endl; // int a[1000]={},n; // cin>>n; // for(int i=0;i<n;i++){ // cin>>a[i]; // } // for(int i=n-1;i>-1;i--){ // cout<<a[i]<<" "; // } // cout<<endl; // return 0; int a[4]={},b[4]={},c[4]={},bu,bu2,bu3; for(int i=0;i<4;i++){ cin>>a[i]; if(a[i]<60){ bu=1; } }for(int i=0;i<4;i++){ cin>>b[i]; if(b[i]<60){ bu2=1; } }for(int i=0;i<4;i++){ cin>>b[i]; if(c[i]<60){ bu3=1; } }if(bu==1){ for(int i=0;i<4;i++){ cout<<a[i]<<" "; cout<<endl; } }if(bu2==1){ for(int i=0;i<4;i++){ cout<<b[i]<<" "; cout<<endl; } }if(bu3==1){ for(int i=0;i<4;i++){ cout<<c[i]<<" "; cout<<endl; } } cout<<endl; 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 40 89 100 88 0 0 0 0