提交时间:2021-12-11 14:37:56
运行 ID: 27239
#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; printf("%.1lf",p); cout<<endl; for(int i=1;i<=n;i++){ if(a[i]>p) cout<<i<<":"<<a[i]<<" "; } return 0; }