Run ID:99123
提交时间:2024-11-24 13:38:24
#include<bits/stdc++.h> using namespace std; double t,e; int main(){ int a[5]; for(int i=0;i<5;i++){ cin>>a[i]; } for(int i=0;i<5;i++){ t=t+a[i]; } cout<<fixed<<setprecision(2)<<t/5<<endl; e=t/5; for(int i=0;i<5;i++){ if(a[i]>e){ cout<<a[i]<<" "; } } return 0; }