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

Tests(0/0):


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


测评信息: