Submit Time:2021-06-26 18:28:09

运行 ID: 21163

#include<bits/stdc++.h> using namespace std; double s,sum; int main(){ cin>>s; for(double i=1;;i++){ sum+=1/i; if(sum>s){ cout<<i<<endl; break; } } return 0; }