Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4682 | 张文曦 | 13求n的阶乘 | C++ | Wrong Answer | 0 MS | 268 KB | 174 | 2024-09-07 14:55:19 |
#include<iostream> using namespace std; int main(){ int n,nt=1; cin>>n; for(int i=1;i<=n;i++){ nt=nt*i; } cout<<n; return 0; }
------Input------
10
------Answer-----
3628800
------Your output-----
10