提交时间:2021-05-27 20:28:44

运行 ID: 19979

#include<bits/stdc++.h> using namespace std; double s,ans=1,i=2; int main(){ cin>>s; while(s>ans){ ans+=1.0/i; i++; } cout<<i-1; return 0; }