提交时间:2019-11-25 20:34:13

运行 ID: 2454

#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; printf("%.1f",c); for (i=1;i<=a;i++) { if (b[i]>c) { cout<<i<<b[i]; } } return 0; }