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 |
Tags
- C++
- Java
- 프로그래머스
- 코드업
- js to ts
- 분할메모리할당
- 기초100제
- 공부
- memory
- 알고리즘
- 리덕스장바구니
- react-redux
- codeup
- web
- CPU 스케줄링
- Spring
- 토이프로젝트
- 자료구조
- OS
- Redux
- 스프링
- 정렬
- Operating System
- 협업
- error
- 백준
- 타입스크립트
- 파이썬
- react
- 일상
Archives
- Today
- Total
목록11051 (1)
감자튀김 공장🍟
[백준/11051] 이항 계수 2 (with 파이썬)
✔ 문제 ✔ 풀이 👾 답안1 import sys input = sys.stdin.readline def factorial(x): if x == 0: return 1 return x * factorial(x-1) n, k = map(int, input().split()) print((factorial(n) // (factorial(k) * factorial(n-k))) % 10007) 👻 math 라이브러리 사용 import sys from math import factorial input = sys.stdin.readline n, k = map(int, input().split()) def binomal(n, k): return factorial(n) // factorial(k) // factorial(..
Algorithm/BOJ
2022. 12. 21. 12:09