提交时间:2021-05-27 20:27:55
运行 ID: 19978
#include<bits/stdc++.h> using namespace std; int s,ans=1,i=2; int main(){ cin>>s; while(s>ans){ ans+=1/i; i++; } cout<<i-1; return 0; }