Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
333152 黄浙峰老师 【C2-2】阶乘 C++ 通过 100 1 MS 244 KB 200 2025-07-16 09:49:47

Tests(3/3):


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


测评信息: