We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Linear Algebra
- Discussions
Linear Algebra
Linear Algebra
Sort by
recency
|
303 Discussions
|
Please Login in order to post a comment
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])****
My compact solution…