Linear Algebra

  • + 0 comments

    import sys import numpy as np

    As usual with HackerRank problems, N is unnecessary.

    However, this time I felt like using it as an example

    of checking the input.

    print([(N := int(input())),

    np.linalg.det(np.loadtxt(sys.stdin.readlines(), float)[:N, :N]).round(2)][1])****