Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158370 李沐阳 n的阶乘 C++ Accepted 2 MS 272 KB 182 2026-08-21 13:14:36

Tests(5/5):


Code:

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