Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3224 吴奕希 n的阶乘 C++ Accepted 0 MS 268 KB 158 2024-04-20 16:46:21

Tests(5/5):


Code:

# include<iostream> using namespace std; int n; int f(int x){ if(x==1)return 1; return x*f(x-1); } int main(){ cin>>n; cout<<f(n); }