반응형
# @Author YoungMinKim
# baekjoon
def factorial(N):
if N == 1:
return 1
elif N == 0:
return 1
else:
return N*factorial(N-1)
N,K = map(int,input().split())
print(int(factorial(N)/(factorial(N-K)*factorial(K))))
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 11650 (0) | 2020.09.13 |
---|---|
baekjoon - python - 11399 (0) | 2020.09.13 |
baekjoon - python - 11022 (0) | 2020.09.13 |
baekjoon - python - 11021 (0) | 2020.09.13 |
baekjoon - python - 11004 (0) | 2020.09.13 |
댓글