일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 13237
- Python
- 파이썬
- algotythm
- 16.04
- 크롤링
- 라즈비안
- springboot3.x
- 백준
- 알고리즘
- 트리
- 2909
- node.js
- bootstrap
- 2579
- Crawling
- nav-tab
- Algorythm
- ubuntu
- MongoDB
- dynaminprogramming
- baekjun
- raspberrypi
- CSS
- 라즈베리파이
- dp
- NAV
- 라즈베리파이3
- 라즈베리파이3b+
- HTML
Archives
- Today
- Total
노트
[백준] 1010번 다리 놓기 python 본문
import math
T = int(input())
for _ in range(T):
n, m = map(int, input().split())
bridge = math.factorial(m) // (math.factorial(n) * math.factorial(m - n))
print(bridge)
광고
광고
'알고리즘' 카테고리의 다른 글
[백준] 14501번 퇴사 python (0) | 2024.03.01 |
---|---|
[백준] 1389번 케빈 베이컨의 6단계 법칙 python (0) | 2024.02.19 |
[백준] 11724번 연결 요소의 개수 python (0) | 2024.02.04 |
[백준] 2909번 캔디 구매 python (0) | 2024.01.28 |
[백준] 7785번 회사에 있는 사람 python (0) | 2024.01.11 |
Comments