Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5687 詹梓涵 13求n的阶乘 C++ Wrong Answer 0 MS 256 KB 205 2024-12-14 09:18:36

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl using namespace std; int main(){ int n,s=1;//int 2^31-1 cin>>n; for(int i=1;i<=n;i++){ s=s*i; cout<<s<<endl; } return 0; }


Run Info:

------Input------
10
------Answer-----
3628800
------Your output-----
1 2 6 24 120 720 5040 40320 362880 3628800