Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5688 | 邓小龙 | 13求n的阶乘 | C++ | Wrong Answer | 0 MS | 264 KB | 234 | 2024-12-14 09:18:52 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ long long n,s=1;//int 2^31-1 cin>>n; for(int i=1;i<=n;i++){ s*=i; cout<<s<<endl; } //cout<<s<<endl; return 0; }
------Input------
10
------Answer-----
3628800
------Your output-----
1 2 6 24 120 720 5040 40320 362880 3628800