casuphere @ 2019-09-30 11:00:19
#include<iostream> using namespace std; int main(){ int n=0;double K,Sn=0;cin>>K; while(++n){Sn+=1.0/n;if(Sn>K){cout<<n<<endl;break;}} return 0; }
by zyywzw @ 2019-09-30 11:03:05
请发题解