Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90015 | 罗迎甲 | 13求n的阶乘 | C++ | Wrong Answer | 1 MS | 272 KB | 186 | 2024-09-07 17:33:56 |
#include<bits/stdc++.h> using namespace std; int main() { int n,k=1; cin>>n; if(n!=0){ for(int a=1;a<=n;a++) k=k*a; cout<<k; } else cout<<1; return 0; }
------Input------
16
------Answer-----
20922789888000
------Your output-----
2004189184