fanhy @ 2017-08-11 21:07:35
#include<iostream> using namespace std; int k,n; double sn; int main() { cin>>k; for(n=1;sn<k;n++) sn+=1/n; cout<<n; return 0; }
by Ch3lly @ 2017-08-14 12:08:44
sn初始化