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