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