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