提交时间:2019-11-29 20:17:08

运行 ID: 2531

#include<iostream> using namespace std; int main(){ int qween; double ty,p=0,er=1000,qq=0; double rr=0; cin>>qween; double I[qween]; for(int E=0;E<qween;E++){ cin>>I[E]; if(I[E]>p) p=I[E]; if(I[E]<er) er=I[E]; } for(int E=0;E<qween;E++){ qq+=I[E]; } double errew; errew=qq/qween; printf("%.1lf\n",errew); for(int E=0;E<qween;E++){ if(I[E]>errew) cout<<E+1<<":"<<I[E]<<" "; } return 0; }