1import math
2
3for _ in range(int(input())):
4 a, b = map(int, input().split())
5 print(math.comb(max(a,b), min(a,b)))
백준 - 1010 : 다리놓기 (S5)
🏷️ python
🏷️ boj
1import math
2
3for _ in range(int(input())):
4 a, b = map(int, input().split())
5 print(math.comb(max(a,b), min(a,b)))