Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
12392 huyanfeng 递归求阶乘 C++ 运行超时 1000 MS 244 KB 187 2023-03-24 17:41:18

Tests(2/3):


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


测评信息: