Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105068 杨博煊 全排列问题 C++ 解答错误 0 0 MS 248 KB 191 2023-10-05 09:44:33

Tests(0/5):


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


测评信息: