这题简简单单
TLE了 直接奉上代码
#include<iostream> using namespace std; int main(){ int k,s=0,n=1; cin>>k; while(s<k){ s+=1/n; n++; } cout<<n; return 0; }