| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 91517 | sh25_zhoumy | 学生的等级 | C++ | Accepted | 1 MS | 248 KB | 430 | 2026-06-13 07:03:35 |
#include <bits/stdc++.h> using namespace std; int main() { int n; double s=0; cin>>n; int x[n],c[n]; for(int i=0;i<n;++i){ cin>>x[i]>>c[i]; s+=c[i]; } s=1.0*s/n; for(int i=0;i<n;++i){ cout<<x[i]<<" "<<c[i]<<" "; if(c[i]>=s+10) cout<<"A"; else if(c[i]<=s-10) cout<<"C"; else cout<<"B"; cout<<endl; } return 0; }