Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128931 韩立鹏 级数求和 C++ 通过 100 47 MS 248 KB 169 2024-01-26 11:48:44

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; }


测评信息: