提交时间:2020-08-04 20:33:38
运行 ID: 5456
#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; }