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)))
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)))