Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 백준 1246번
- 챗봇
- 한반도평화와공공외교
- 실버
- 해설
- 백준 11050번
- 연산자 문제
- 가치규범의 공공외교
- 1141번
- 파이썬
- 백준 1487번
- 0의 개수
- 풀이
- 알고리즘
- html
- N과 M
- 1
- 주창형 공공외교
- B-tree
- DP 알고리즘
- 이항계수
- 백준
- 풍선터뜨리기
- CSS
- 해싱
- 백준 14501번
- 문제 풀이
- Python
- BTREE
- hashing
Archives
- Today
- Total
SunFly의 코딩 및 정보 블로그
[파이썬(Python)] 백준 11051번 : 이항계수 2 본문
풀이
import sys def factorial(x): # 팩토리얼 res = 1 for i in range(1, x+1): res *= i return res input = sys.stdin.readline N, K = map(int, input().split()) result = factorial(N) // (factorial(K) * factorial(N-K)) total = result % 10007 print(total) |
'백준(BaekJoon)' 카테고리의 다른 글
[파이썬(Python)] 백준 2981번 : 검문 (0) | 2022.02.26 |
---|---|
[파이썬(Python)] 백준 2004번 : 조합 0의 개수 (0) | 2022.02.26 |
[파이썬(Python)] 백준 1676번 : 팩토리얼 0의 개수 (0) | 2022.02.26 |
[파이썬(Python)] 백준 11050번 : 이항 계수 1 (0) | 2022.02.25 |
[파이썬(Python)] 백준 3036번 : 링 (0) | 2022.02.25 |