Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83121 sh25_shengmy 递归求阶乘 C++ 通过 1 MS 248 KB 176 2026-01-22 21:14:15

Tests(3/3):


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


测评信息: