import sys
n = int(sys.stdin.readline())
result = 1
for i in range(1,n+1):
if i <= n :
result = result * i
print(result)
'개발 > Algorithm' 카테고리의 다른 글
[Python] 백준 2798번 블랙잭 (0) | 2021.11.08 |
---|---|
[Python] 백준 10870번 피보나치 수열 (0) | 2021.11.08 |
[Python] 백준 더하기 사이클 1110번 (0) | 2021.11.08 |
[Python] 백준 10992 별 찍기 (0) | 2021.11.07 |
그리디 알고리즘이란? (0) | 2021.10.26 |
댓글