WA求教<_<
#include<bits/stdc++.h> using namespace std; int main(){ double k,n=1,sn; cin>>k; while(1){ sn+=1/n; if(sn>k) break; n++; } cout<<n; return 0; }