You are viewing a single comment's thread. Return to all comments →
from math import factorial as f
for _ in range(int(input())):
n,m=map(int,input().split()) print((f(n+m)//(f(n)*f(m)))%(10**9+7)) ***Pythonic***
Seems like cookies are disabled on this browser, please enable them to open this website
Merge List
You are viewing a single comment's thread. Return to all comments →
from math import factorial as f
for _ in range(int(input())):