Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96383 | 冯诚阳 | C语言8.3 | C++ | Accepted | 0 MS | 264 KB | 229 | 2024-11-07 18:54:49 |
# include<iostream> # include<cstring> # include<cmath> using namespace std; int f(int n){ if(n==1) return 1; else return f(n-1)*n; } int main(){ int n; cin>>n; cout<<f(n)<<endl; return 0; }