Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129639 陈航 级数求和 C++ 通过 100 47 MS 248 KB 167 2024-01-27 09:19:39

Tests(4/4):


#include<iostream> using namespace std; int k; double s=0; int n=0; int main(){ cin>>k; while(k>s){ n+=1; s+=1.0/n; } cout<<n<<endl; return 0; }


测评信息: