Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
352293 胡珂 【C2-2】阶乘 C++ 通过 100 4 MS 240 KB 194 2025-09-23 21:30:28

Tests(3/3):


#include<bits/stdc++.h> using namespace std; long long f(int x){ if(x==1||x==0) return 1; return x*f(x-1); } int main(){//递归 int n; cin>>n; cout<<f(n)<<endl; return 0; }


测评信息: