Aditya recently got selected as a manager in a company. As he was new to the company he wants to be as productive as he can so, in order to boost the productivity of his employees he determined a way, He will form productive team that will try to improve their productivity, his team consist of R employees. Now he needs to determine total no of ways W in which he can select his team.
You are given integer N denoting total number of employees, you need to determine total no of ways W he can select his team of R employees.
def nCr(n, r):
return (fact(n) // (fact(r)* fact(n - r)))
res = 1 for i in range(2, n+1): res = res * i return res
for t in range(int(input())):