提交时间:2019-11-23 20:36:31

运行 ID: 2362

#include<iostream> int main(){ short a,b[101],c=0,i; 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; }