def bc(n): if n==0: return 1 else: return n*bc(n-1) t=int(input()) for i in range(t): n,m=map(int,input().split()) s=bc(m)//(bc(n)*bc(m-n)) print(s)
접근 방법