https://www.acmicpc.net/problem/11051
# 백준 파이썬 11051 이항 계수 2
import math
n, k = map(int, input().split())
ans = math.comb(n, k)
ans %= 10007
print(ans)
'알고리즘 > 백준' 카테고리의 다른 글
[Python] 백준 파이썬 9375 패션왕 신해빈 (0) | 2022.10.15 |
---|---|
[Python] 백준 파이썬 1010 다리 놓기 (1) | 2022.10.14 |
[Python] 백준 파이썬 11050 이항 계수 1 (0) | 2022.10.12 |
[Python] 백준 파이썬 3036 링 (0) | 2022.10.11 |
[Python] 백준 파이썬 2981 검문 (0) | 2022.10.10 |