| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130132 | 周民苡 | 计算平均数 | C++ | Accepted | 2 MS | 272 KB | 264 | 2025-09-07 17:06:19 |
#include <bits/stdc++.h> using namespace std; int main() { int a[5],s=0; for(int i=1;i<=5;i++){ cin>>a[i]; s+=a[i]; } double p=s*1.0/5; printf("%.2lf\n",p); for(int i=1;i<=5;i++){ if(a[i]>p)cout<<a[i]<<' '; } return 0; }