Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
9662 鲁家菱 级数求和 C++ 通过 0 MS 252 KB 156 2023-02-16 19:24:36

Tests(1/1):


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


测评信息: