Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158375 余建成 n的阶乘 C++ Accepted 1 MS 276 KB 192 2026-08-21 13:22:10

Tests(5/5):


Code:

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