| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163259 | 郦辰希 | 计算平均数 | C++ | Accepted | 1 MS | 272 KB | 317 | 2026-10-24 16:46:09 |
#include <iostream> using namespace std; int main(){ int a[6],i; double h=0; for(i=0;i<5;i++){ cin>>a[i]; h+=a[i]; } h/=5; printf("%.2f",h); cout<<endl; for(i=0;i<5;i++){ if(a[i]>h){ cout<<a[i]<<" "; } } return 0; }