• + 0 comments

    This passes all the test cases:

    from math import comb
    
    def solve(n, m):
        return comb(n+m, m)%(10**9 + 7)