提交时间:2021-12-11 14:35:29

运行 ID: 27232

#include<bits/stdc++.h> using namespace std; double n,a[101],p; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; p+=a[i]; } p=p/7.0; cout<<p<<endl; for(int i=1;i<=n;i++){ if(a[i]>p) cout<<i<<":"<<a[i]<<" "; } return 0; }