Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66097 夏梓瑞 计算平均数 C++ Accepted 1 MS 280 KB 308 2024-03-02 14:39:13

Tests(10/10):


Code:

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