#include int main(){int i,n;float avg,s=0,a[50];scanf("%d",&n);for(i=0;i{scanf("%f",&a[i]);s+=a[i];}avg=s/n;printf("%.2f\n",avg);for(i=0;iif(a[i]printf("%.2f ",a[i]);return 0;}
//运行示例截图:
明天帮你写吧