Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
129532 | 黄俊然 | 14慈善募捐 | C++ | Accepted | 1 MS | 276 KB | 438 | 2025-08-27 20:25:11 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double i=0,h=0; int s=0; while(h<100000){ cin>>i; s++; h+=i; } h/=s; cout<<s<<" "; printf("%.2lf",h); return 0; }