Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129649 Microsoft 级数求和 C++ 编译错误 0 0 MS 0 KB 202 2024-01-27 09:28:40

Tests(0/0):


#include<bits/c++.h> using namespace std; int main(){ int n=0; double m; cin>>m; double sum=0,i=0; while(sum<m) { i++; sum+=1.0/i; n++; } cout<<n<<endl; return 0; }


测评信息: