Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56119 | 许兴平 | 高精度阶乘的和 | C++ | Wrong Answer | 0 MS | 240 KB | 211 | 2024-11-09 13:59:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,result=0; cin>>n; for(int i=1;i<=n;i++){ int add=1; for(int k=1;k<=i;k++) add*=k; result+=add; } cout<<result; return 0; }