Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107169 | 陈铎文 | 14慈善募捐 | C++ | Accepted | 1 MS | 276 KB | 272 | 2025-01-17 14:20:33 |
#include<iostream> using namespace std; int main(){ int b=0; double c,a; while(1){ if(c>=100000){ break; } cin>>a; c+=a; b++; } cout<<b<<" "; printf("%.2f\n", c/b); return 0; }