Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128921 刘语晗 级数求和 C++ 解答错误 50 47 MS 248 KB 159 2024-01-26 11:26:56

Tests(2/4):


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


测评信息: