789166613 shijunyu · 发布于 2026-02-05 · 浏览 242 回复 0 include using namespace std; int main() { double x, s = 0, d = 2; int n = 0; cin >> x; while (s < x) s += d, d *= 0.98, n++; cout << n << endl; return 0; }