이항 계수 1

yongju·2022년 12월 12일
0

BAEKJOON

목록 보기
34/40
post-thumbnail

❓문제

https://www.acmicpc.net/problem/11050

❗문제 정리

이항계수 :

📑코드

import math
n, k=map(int, input().split())
print(int((math.factorial(n))/(math.factorial(n-k)*math.factorial(k))))

📝코드 설명

math.factorial써서 이항계수 수식 구현

🎖제출 결과

💡insight

profile
AI dev

0개의 댓글