#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
int k,n=0;
float s=0;
cout << "输入:";
cin >> k;
while(s<=k){
n++; //注意始末
//调整递变语句顺序,则可微调始末
s += 1 / (n*1.0);
}
cout << n;
return 0;
}
//cout << "输入:";
08-30