Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97034 杨一诺 n的阶乘 C++ Accepted 1 MS 272 KB 200 2024-11-10 11:40:30

Tests(5/5):


Code:

#include<bits/stdc++.h> using namespace std; int sum; int x; int age(int n){ if(n==1){ return 1; } else{ return age(n-1)*n; } } int main(){ cin>>x; cout<<age(x); return 0; }