Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33049 wxh 【入门】数列求值2 C++ 通过 0 MS 244 KB 203 2023-12-24 08:54:02

Tests(20/20):


#include <bits/stdc++.h> using namespace std; int main(){ int a; double b=0; cin>>a; for(int i=1;i<=a;i++){ b+=(double)(1*1.0/i); } cout<<fixed<<setprecision(6)<<b<<endl; return 0; }


测评信息: