Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73961 hby n的阶乘 C++ Accepted 0 MS 272 KB 171 2024-05-20 20:24:15

Tests(5/5):


Code:

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