| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 27270 | 202102bxy | 找找谁的身高超过全班的平均身高 | C++ | Accepted | 100 | 0 MS | 252 KB | 267 | 2021-12-11 14:50:53 |
#include<bits/stdc++.h> using namespace std; double n,s[101],t; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>s[i]; t+=s[i]; } t/=n; printf("%.1lf\n",t); for(int i=1;i<=n;i++){ if(s[i]>t){ cout<<i<<":"<<s[i]<<" "; } } return 0; }