| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2453 | 李言 | 找找谁的身高超过全班的平均身高 | C++ | Wrong Answer | 0 | 0 MS | 252 KB | 264 | 2019-11-25 20:33:12 |
#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("%f",c); for (i=1;i<=a;i++) { if (b[i]>c) { cout<<i<<b[i]; } } return 0; }