Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
12680 | 苏莉雯 | 仰卧起坐成绩统计 | C++ | 解答错误 | 0 | 1 MS | 252 KB | 493 | 2025-08-16 15:21:22 |
#include<bits/stdc++.h> using namespace std; int main() { int n,f=0,e=0,d=0,c=0,b=0,a=0,g; cin>>n; for(int i=0;i<n;i++) { cin>>g; if(g<20) { f++; } else if(g>=20&&g<=29) { e++; } else if(g>=30&&g<=39) { d++; } else if(g>=40&&g<=49) { c++; } else if(g>=50&&g<=59) { b++; } else if(g>=60) { a++; } } cout<<"E:"<<e<<endl<<"F:"<<f<<endl<<"C:"<<c<<endl<<"B:"<<b<<endl<<"D:"<<d<<endl<<"A:"<<a<<endl; }