Run ID:149470
提交时间: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; }