Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106857 | 王子毅 | 14慈善募捐 | C++ | Output Limit Exceeded | 4 MS | 272 KB | 308 | 2025-01-16 18:23:07 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int i=1,n,a=0; float b; for(i=1;i<=1000;i++) { cin>>n; a+=n; if(a>100000) { b=a/i; cout<<i<<""<<printf("%.2f\n", b); } } return 0; }