gzhsdmnlll @ 2024-11-22 10:47:07
#include <iostream>
using namespace std;
int main()
{
int k;
cin>>k;
double n=0,t=0;
while(t<k*1.0)
{
n++;
t=1.0/n+t;
}
cout<<n<<endl;
return 0;
}
by wwwop @ 2024-11-22 11:28:31
舍入误差