반응형
https://www.acmicpc.net/problem/10872
# @Author YoungMinKim
# baekjoon
def factorial(N):
if N==1 or N==0:
return 1
else:
return N*factorial(N-1)
N=int(input())
print(factorial(N))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 1427 (0) | 2020.09.04 |
---|---|
baekjoon - python - 10886 (0) | 2020.09.03 |
baekjoon - python - 10871 (0) | 2020.09.02 |
baekjoon - python - 10870 (0) | 2020.09.02 |
baekjoon - python - 10869 (0) | 2020.09.02 |
댓글