You are viewing a single comment's thread. Return to all comments →
My solution in Python:
def solve(n, m):
return int(math.factorial(n+m)//(math.factorial(n)*math.factorial(m))*m//(n+m) % (10**9+7))
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Permutations
You are viewing a single comment's thread. Return to all comments →
My solution in Python:
def solve(n, m):