提交时间:2024-05-12 19:05:23
运行 ID: 47224
#include<bits/stdc++.h> using namespace std; int main(){ int n,nl; int i=1; double sum=0; cin>>n; while(i<=n){ cin>>nl; sum=sum+nl; i++; } cout<<sum/n; return 0; }