提交时间:2024-01-27 08:33:15
运行 ID: 129445
#include<bits/stdc++.h> using namespace std; int main() { double k,s=0,n=1; cin>>k; while(s<k) {s=s+1/n; n++;} cout<<fixed<<int(n-1); return 0; }