Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
333149 黄浙峰老师 【C2-2】阶乘 C++ 解答错误 33 5 MS 240 KB 194 2025-07-16 09:48:55

Tests(1/3):


#include<bits/stdc++.h> using namespace std; int 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; }


测评信息: