[BOJ] 11050. ์ดํญ ๊ณ์ 1(python)
๐๋ฌธ์
๐ช์์ด๋์ด
์ฝค๋น๋ค์ด์ ์ ๊ณ์ฐํ ์ ์๋ ํ์ด์ฌ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก math.combination์ด ์๋ค.
๐ฅ์ฝ๋
1
2
3
4
from math import comb
n, k = map(int,input().split())
answer = comb(n,k)
print(answer)
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.