Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118952 周荣浩 计算平均数 C++ Accepted 1 MS 272 KB 279 2025-05-11 10:31:14

Tests(10/10):


Code:

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