Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129445 黄曦 级数求和 C++ 通过 100 47 MS 252 KB 166 2024-01-27 08:33:15

Tests(4/4):


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


测评信息: