0分救护车
查看原帖
0分救护车
1430495
litianrui0201楼主2025/1/13 19:59
#include<bits/stdc++.h>
using namespace std;
int main( ){
	int k;cin>>k;
	int fz=1,fm=1;
	double sn=0;
	while(1){
		sn+=double(fz)/double(fm);
		fm++;
		if(sn>k)break;
	}
	cout<<fm;
	return 0;
}
2025/1/13 19:59
加载中...