Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75422 sh25_shenpy 递归求阶乘 C++ 通过 0 MS 248 KB 197 2025-12-06 17:33:44

Tests(3/3):


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


测评信息: