提交时间:2020-08-03 13:56:27

运行 ID: 5443

#include<bits/stdc++.h> using namespace std; int main(){ int n; double a,b=0,c; cin>>n; for(int i=1;i<=n;i++){ cin>>a; b+=a; c=b/n; printf("%.1lf",c/n); if(b>c) cout<<i<<":"<<b<<" "; } return 0; }