Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67666 刘浩宇 n的阶乘 C++ Accepted 1 MS 272 KB 178 2024-03-17 11:58:22

Tests(5/5):


Code:

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