Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126693 梁乃元 计算n的阶乘 C++ 通过 100 0 MS 248 KB 264 2024-01-24 16:56:34

Tests(3/3):


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


测评信息: