Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75185 黄睿杰 14慈善募捐 C++ Accepted 1 MS 276 KB 238 2024-05-26 15:17:56

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int n[1000]; int main(){ double s=0,m=0; for(int i=1;i<=1000;i++) { cin>>n[i]; s+=n[i]; m++; if(s>=100000) break; } cout<<m<<" "; printf("%.2lf",s/m); return 0; }