Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129543 胡德滔 级数求和 C++ 编译错误 0 0 MS 0 KB 211 2024-01-27 08:52:00

Tests(0/0):


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


测评信息: