from __future__ import annotations

from pathlib import Path

def     lowercase_       (    _lowerCamelCase							: tuple[int, int]	,			_lowerCamelCase							: tuple[int, int]):
    return pointa[0] * pointa[1] - pointa[1] * pointa[0]

def     lowercase_       (    _lowerCamelCase							: int	,			_lowerCamelCase							: int	,			_lowerCamelCase							: int	,			_lowerCamelCase							: int	,			_lowerCamelCase							: int	,			_lowerCamelCase							: int):
    lowercase__				:     tuple[int, int]					      =       (xa, ya)
    lowercase__				:     tuple[int, int]					      =       (xa - xa, ya - ya)
    lowercase__				:     tuple[int, int]					      =       (xa - xa, ya - ya)
    lowercase__				:     float					      =       -vector_product(_lowerCamelCase	,			_lowerCamelCase) / vector_product(
        _lowerCamelCase	,			_lowerCamelCase)
    lowercase__				:     float					      =       +vector_product(_lowerCamelCase	,			_lowerCamelCase) / vector_product(
        _lowerCamelCase	,			_lowerCamelCase)

    return a > 0 and b > 0 and a + b < 1

def     lowercase_       (    _lowerCamelCase							: str = "p102_triangles.txt"):
    lowercase__				:     str					      =       Path(_lowerCamelCase).parent.joinpath(_lowerCamelCase).read_text(encoding="utf-8")

    lowercase__				:     list[list[int]]					      =       []
    for line in data.strip().split("\n"):
        triangles.append([int(_lowerCamelCase) for number in line.split(",")])

    lowercase__				:     int					      =       0
    lowercase__				:     list[int]

    for triangle in triangles:
        ret += contains_origin(*_lowerCamelCase)

    return ret


if __name__ == "__main__":
      print(f"{solution() = }")




def     lowercase_       (    _lowerCamelCase							: str	,			_lowerCamelCase							: Optional[int]):
    if len(str(_lowerCamelCase)) == 1 or len(str(_lowerCamelCase)) == 1:
        return a * b

    lowercase__				:     Tuple					      =       max(len(str(_lowerCamelCase))	,			len(str(_lowerCamelCase)))
    lowercase__				:     Union[str, Any]					      =       ma // 2

    lowercase__      ,     lowercase__				:     Union[str, Any]					      =       divmod(_lowerCamelCase	,			10**ma)
    lowercase__      ,     lowercase__				:     Tuple					      =       divmod(_lowerCamelCase	,			10**ma)

    lowercase__				:     int					      =       karatsuba(_lowerCamelCase	,			_lowerCamelCase)
    lowercase__				:     Dict					      =       karatsuba((aa + aa)	,			(ba + ba))
    lowercase__				:     Optional[int]					      =       karatsuba(_lowerCamelCase	,			_lowerCamelCase)

    return (z * 10 ** (2 * ma)) + ((y - z - x) * 10 ** (ma)) + (x)

def     lowercase_       (    ):
    print(karatsuba(1_5463	,			2_3489))


if __name__ == "__main__":
      main()



