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