LZT LZT · 发布于 2026-02-06 · 浏览 201 回复 0 include using namespace std; int main() { double a, b, c; cin >> a; for (c = 1; ; c++) { b += 1.0 / c; if (b > a) { break; } } cout << c; return 0; }