Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113867 吴诗涵 阶乘的和 C++ Wrong Answer 1 MS 268 KB 397 2025-03-16 19:13:10

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int out(int a){ int s=1; for(int i=1;i<=a;i++){ s*=i; } return s; } int main(){ int c; cin>>c; cout<<out(c); return 0; }


Run Info:

------Input------
4
------Answer-----
33
------Your output-----
24