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