提交时间:2025-11-02 13:53:12
运行 ID: 72702
#include <bits/stdc++.h> using namespace std; int main() { double k,n=1,s=0.0; cin>>k; while(1) { s+=1.0/n; if(s>k) { break; } n++; } cout<<fixed<<setprecision(0)<<n; return 0; }