Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
74406 | 吴天辰 | 14慈善募捐 | C++ | Accepted | 1 MS | 276 KB | 254 | 2024-05-25 11:00:49 |
#include<iostream> using namespace std; int main() { double a; int was=0,gave=0; for(int i=1;i<=100000;i++) { cin>>gave; a+=gave; was++; if(a>=100000) break; } cout<<was<<" "; printf("%.2f",a/was); return 0; }