Algorithm/boj

[파이썬] 24419 알고리즘 수업 - 행렬 경로 문제 2

takeU 2022. 8. 30. 20:32
반응형
from math import factorial

n = int(input())
board = [list(map(int, input().split())) for _ in range(5)]

print(factorial(2 * n) // (factorial(n) ** 2) % 1000000007, n ** 2)