Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129583 韩立鹏 级数求和 C++ 通过 100 47 MS 244 KB 169 2024-01-27 09:01:59

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main() { double k,n=0,s=0; cin>>k; while(s<=k){ n+=1; s=s+1.0/n; } printf("%.0f",n); return 0; }


测评信息: