提交时间:2024-02-07 13:38:58
运行 ID: 40081
#include <bits/stdc++.h> using namespace std; int main(){ double n; cin>>n; int i=1; double sum = 0; while(i<=n){ double x; cin>>x; sum=sum+x; i++; } cout<<fixed<<setprecision(4)<<sum/n; return 0; }