提交时间:2024-11-15 19:24:03
运行 ID: 56756
#include<bits/stdc++.h> using namespace std; int main(){ int times,cishu; double result=0.0,a; cin>>times; cishu=times; while(times>=1){ cin>>a; result+=a; times-=1; } cout<<fixed<<setprecision(4)<<1.0*result/cishu; return 0; }