# funEx7
from functools import *

@lru_cache()
def pascal(row,pos):
    if pos == row+1 or pos == 1:
        return 1
    else:
        return pascal(row-1,pos-1)+pascal(row-1,pos)

1ed676faf4d5f606989eefeaa9d3149908bc1610
<mask token>

<mask token>


@lru_cache()
def pascal(row, pos):
    if pos == row + 1 or pos == 1:
        return 1
    else:
        return pascal(row - 1, pos - 1) + pascal(row - 1, pos)

from functools import *


@lru_cache()
def pascal(row, pos):
    if pos == row + 1 or pos == 1:
        return 1
    else:
        return pascal(row - 1, pos - 1) + pascal(row - 1, pos)

# funEx7
from functools import *

@lru_cache()
def pascal(row,pos):
    if pos == row+1 or pos == 1:
        return 1
    else:
        return pascal(row-1,pos-1)+pascal(row-1,pos)
