Run ID:150116

提交时间:2026-03-22 11:48:16

#include<bits/stdc++.h> using namespace std; int main() { double sn=1,k, int n=1; cin>>k; while(sn<=k) { sn+=pow(n+1,-1) n++; } cout<<n<<endl; return 0; }