提交时间:2020-08-04 21:39:35
运行 ID: 5470
#include<bits/stdc++.h> using namespace std; int main(){ int n; double a[101],sum; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; sum+=a[i]; } printf("%.1lf\n",sum/n); for(int i=1;i<=n;i++){ if(a[i]>=sum/n) cout<<i<<":"<<a[i]<<" "; } return 0; }