提交时间:2024-11-08 16:07:45

运行 ID: 55919

#include<bits/stdc++.h> using namespace std; int main() { int m,n,k; float s; s=0; cin>>m; for (k=0;k<m;k++){ cin>>n; s+=n; } s=s/m; cout<<fixed<<setprecision(2)<<s; return 0; }