Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135019 王金檐 n的阶乘 C++ Accepted 2 MS 272 KB 203 2025-11-02 11:05:31

Tests(5/5):


Code:

#include<bits/stdc++.h> using namespace std; int x; int t(long long n,int a,int i){ if(n<x){ t(n+1,a*i,i+1); }else{ return a; } } int main(){ cin>>x; cout<<t(1,1,2); return 0; }