提交时间:2021-06-19 19:45:10

运行 ID: 20682

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