You are viewing a single comment's thread. Return to all comments →
def solve(n, m): # Write your code here return math.comb(n+m-1, m-1) % 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 →