提交时间:2026-06-03 19:36:59
运行 ID: 443174
#include <bits/stdc++.h> using namespace std; int main(){ float x,s=0; cin>>x; int i=1; while(s<=x){ s=s+1.0/i; i++; } cout<<i-1; return 0; }