본문 바로가기
백준문제/새싹

백준) 10872번 - python

by kiseno 2024. 2. 2.
728x90
반응형
SMALL
import sys
sys.setrecursionlimit(10**6)
n = int(input())
def factorial(n):
    if n <= 1 : return 1
    else: return n * factorial(n-1)

print(factorial(n))
728x90
반응형
LIST

'백준문제 > 새싹' 카테고리의 다른 글

백준) 14681번 - python  (0) 2024.02.04
백준) 10952번 - python  (0) 2024.02.03
백준) 10871번 - python  (1) 2024.02.01
백준) 9086번 - python  (1) 2024.01.31
백준) 2754번 - python  (0) 2024.01.26