| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159216 | 杨正蠔 | 14慈善募捐 | C++ | Accepted | 1 MS | 272 KB | 472 | 2026-08-27 09:13:19 |
#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(){ int n,m=0,i,x; for(i=1;i<=1000;i++){ cin>>n; m+=n;x=i; if(m>=100000){ break; } } cout<<x<<' '; printf("%.2lf",m*1.0/x); return 0; }