Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163037 王垚植 满足Sn>k的最小n C++ Accepted 1 MS 268 KB 200 2026-10-24 11:31:57

Tests(10/10):


Code:

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