Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72607 杨一诺 14慈善募捐 C++ Accepted 0 MS 272 KB 202 2024-05-12 08:40:50

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a,i,b=0; int main(){ while(true){ cin>>a; b++; i+=a; if(i>=100000){ break; } } printf("%d %.2lf",b,i*1.0/b); return 0; }