You are viewing a single comment's thread. Return to all comments →
#python import math for i in range(int(input())): n, m=map(int, input().split()) print(math.comb(n+m, m) %(10**9+7))
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #15: Lattice paths
You are viewing a single comment's thread. Return to all comments →