You are viewing a single comment's thread. Return to all comments →
I don't know why this problem is marked as hard??
from math import factorial n=int(input()) for i in range(n): a,b=map(int,input().split()) print ((factorial(a+b-1)//(factorial(a)*factorial(b-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 →
I don't know why this problem is marked as hard??