Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71295 sh25_wangsj 求出e的值 C++ 编译错误 0 MS 0 KB 237 2025-10-24 21:59:10

Tests(0/0):


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


测评信息: