提交时间:2019-11-23 20:39:45

运行 ID: 2363

#include<iostream> int main(){ short a,b[101],i; float c=0; scanf("%hd",&a); for (i=1;i<=a;i++) { scanf("%hd",&b[i]); c+=b[i]; } c/=a; for (i=1;i<=a;i++) { if (b[i]>c) { printf("%hd:%hd ",i,b[i]); } } return 0; }