| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 74596 | sh25_shenpy | 求阶乘的和 | C++ | Accepted | 0 MS | 244 KB | 270 | 2025-11-29 20:12:17 |
#include <bits/stdc++.h> using namespace std; int main( ) { int n; int x=0,i=1,j=1,sum=1; cin>>n; while(i<=n){ while(j<=i){ sum*=j; j=j+1; } x+=sum; i=i+1; } cout<<x; return 0; }