You are viewing a single comment's thread. Return to all comments →
import sys import numpy as np
N
print([(N := int(input())),
Seems like cookies are disabled on this browser, please enable them to open this website
Linear Algebra
You are viewing a single comment's thread. Return to all 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])****