| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149470 | 赖泓宇 | 14慈善募捐 | C++ | Accepted | 0 MS | 272 KB | 432 | 2026-03-13 18:38:17 |
#include <iostream> #include <iomanip> using namespace std; int main() { int money, count = 0; double total = 0.0; while (total < 100000 && count < 1000) { cin >> money; count++; total += money; if (total >= 100000) { break; } } double avg = total / count; cout << count << " " << fixed << setprecision(2) << avg << endl; return 0; }