提交时间:2024-11-15 19:23:07

运行 ID: 56755

#include<bits/stdc++.h> using namespace std; int main(){ int a,times,cishu; double result=0.0; cin>>times; cishu=times; while(times>=1){ cin>>a; result+=a; times-=1; } cout<<fixed<<setprecision(2)<<1.0*result/cishu; return 0; }