Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
141589
Run ID
作者
问题
语言
测评结果
Time
Memory
代码长度
提交时间
141589
胡海峰老师
n的阶乘
Python3
Accepted
31 MS
3776 KB
112
2025-12-27 14:24:04
Tests(5/5):
Code:
def fac(n): if n==1: return 1 return fac(n-1) * n res = fac( int(input()) ) print(res)