Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156256 王培臻 阶乘的和 C++ Wrong Answer 1 MS 272 KB 244 2026-06-27 15:15:20

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int cs(int f){ int sc=0; for(int e=1;e<=f;e++){ sc*=e; } return sc; } int main() { long long a,s=0; cin>>a; for(int i=1;i<=a;i++){ s+=cs(i); } cout<<s; return 0; }


Run Info:

------Input------
4
------Answer-----
33
------Your output-----
0