Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
91111 sh25_zhoumy 级数求和 C++ 通过 1 MS 248 KB 241 2026-06-12 15:05:48

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; double s=0; for(int n=1;;++n){ s+=1.0*1/n; if(s>k){ cout<<n; break; } } return 0; }


测评信息: