| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2475 | 宋铭扬 | 找找谁的身高超过全班的平均身高 | C++ | Wrong Answer | 0 | 0 MS | 252 KB | 284 | 2019-11-26 21:55:31 |
#include<iostream> using namespace std; int main() { int n,a[100]; float total=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; total=total+a[i]; } for(int i=1;i<=n;i++){ if(a[i]>=total/n) printf("%d:%d ",i,a[i]); } printf("%.1f",total/n); return 0; }