Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
6254 张博涵 求出e的值 C++ 通过 0 MS 260 KB 200 2023-01-20 20:37:06

Tests(1/1):


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


测评信息: