Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103006 | 孙睿阳 | n的阶乘 | C++ | Wrong Answer | 0 MS | 272 KB | 143 | 2024-12-27 21:52:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ n=n*i; } cout<<n; return 0; }
------Input------
6
------Answer-----
720
------Your output-----
-1420957696