Run ID:150107
提交时间:2026-03-22 11:42:27
#include<bits/stdc++.h> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double sn=0; int k,n=1; cin>>k; while(sn<=k){ sn+=pow(n+1,-1); n++; cout<<n<<endl; return 0; }