提交时间:2024-04-20 20:20:32
运行 ID: 45908
#include<cstdio> using namespace std; int main() { int n,t; int i=1; double s; s=0; cin>>n; while(i<=n) { cin>>t; s+=t; i++; } printf("%.2lf",s/n); return 0; }