Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119114 李亚婷 计算平均数 C++ Accepted 1 MS 276 KB 252 2025-05-16 15:23:54

Tests(10/10):


Code:

#include <iostream> #include <cstdio> using namespace std; int main(){ int a[5]; double h=0; for(int i=0;i<5;i++){ cin>>a[i]; h+=a[i]; } printf("%.2lf\n",h/5); for(int i=0;i<5;i++){ if(a[i]>h/5){ cout<<a[i]<<" "; } } }