Algorithm/boj

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

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

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

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

수학