调和级数
[NOIP2002]级数求和
https://ac.nowcoder.com/acm/contest/19305/1044
#include <iostream>
using namespace std;
int main(){
int k;
cin >> k;
double sum = 0;
int count = 0;
for(int i = 1;sum <= k;i++){
sum += 1.0 / i * 1.0;
count++;
}
cout << count;
}