提交时间:2021-12-24 22:16:03

运行 ID: 28016

#include<bits/stdc++.h> using namespace std; int n,ans; double h[100],avg; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>h[i]; avg+=h[i]; } avg/=n; printf("%.1lf\n",avg); for(int i=1;i<=n;i++){ if(h[i]>avg) printf("%d:%.0lf ",i,h[i]); } return 0; }