| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71301 | sh25_wangsj | 求出e的值 | C++ | Compile Error | 0 MS | 0 KB | 259 | 2025-10-24 22:07:29 |
#include <iostream> #include <iomanip> using namespace std; int main() { int a; double e=1.0,j=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; }