Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2642 | 孙浚轩 | 输出满足条件的成绩 | C++ | Accepted | 0 MS | 256 KB | 319 | 2024-01-20 13:47:03 |
#include<iostream> using namespace std; int main(){ int t=0; int student[50],score[50]; while(t<50){ cin>>student[t]>>score[t]; t++; } t=0; while(t<50){ if(score[t]>=80) cout<<student[t]<<" "<<score[t]<<endl; t++; } return 0; }