| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2455 | 李言 | 找找谁的身高超过全班的平均身高 | C++ | Accepted | 100 | 0 MS | 248 KB | 270 | 2019-11-25 20:36:03 |
#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; printf("%.1f\n",c); for (i=1;i<=a;i++) { if (b[i]>c) { printf("%hd:%hd ",i,b[i]); } } return 0; }