0分!
查看原帖
0分!
1478648
luoguofwangliming楼主2025/1/4 16:36
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int k,n=1;
	cin>>k;
	double b=0;
	while (b>k)
	{
        b=b+1.0/n;
	    n++;
	}
	cout<<n;
	return 0;
}
2025/1/4 16:36
加载中...