Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3204 杨洋杰 n的阶乘 C++ Accepted 0 MS 268 KB 185 2024-04-19 20:58:00

Tests(5/5):


Code:

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