提交时间:2022-07-15 22:14:59
运行 ID: 48498
#include<bits/stdc++.h> using namespace std; int main(){ double s,coun=1; cin>>s; for(double n=2;;n++){ for(double j=2;j<=n;j++){ coun+=1/j; } if(coun>s){ cout<<n+1; return 0; } } return 0; }