| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131502 | 李明秦 | 阶乘的和 | C++ | Wrong Answer | 1 MS | 272 KB | 313 | 2025-09-27 14:00:24 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int shu(int a){ int c=1; for(int i=a;i>=1;i--){ c*=i; } } int main(){ int n,y; cin>>n; for(int i=n;i>=1;i--){ y+=shu(i); } cout<<y<<endl; return 0; }
------Input------
4
------Answer-----
33
------Your output-----
0