You are viewing a single comment's thread. Return to all comments →
Python
def solve(n, m): k=math.factorial(n+m-1) a=math.factorial(n)*math.factorial(m-1) k=k//a return (k%1000000007)
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 →
Python