提交时间:2019-11-25 20:29:24

运行 ID: 2450

#include<iostream> using namespace std; int main(){ short a,b[101],i; float c=0; cin>>a; for (i=1;i<=a;i++) { cin>>b[i]; c+=b[i]; } c/=a; cout<<c; for (i=1;i<=a;i++) { if (b[i]>c) { cout<<i<<b[i]; } } return 0; }