반응형
    
    
    
  문제 정보

제출 코드
def fectorial(n):
	if(n==1):
		return 1
	else:
		return n*fectorial(n-1)
n = int(input())
if(n==0):
	print(1)
else:
	print(fectorial(n))반응형
    
    
    
  'Study > 알고리즘' 카테고리의 다른 글
| [백준 알고리즘] 10870번 Python (0) | 2021.10.04 | 
|---|---|
| [백준 알고리즘] 1002번 Python (0) | 2021.10.04 | 
| [백준 알고리즘] 3053번 Python (0) | 2021.10.04 | 
| [백준 알고리즘] 4153번 Python (0) | 2021.10.04 | 
| [백준 알고리즘] 3009번 Python (0) | 2021.10.04 | 
														
													
														
													
														
													
														
													
댓글