You are viewing a single comment's thread. Return to all comments →
import numpy as np
N = int(input()) M = np.array([input().split() for _ in range(N)],float)
A = np.linalg.det(M)
print(np.round(A,2))
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 numpy as np
N = int(input()) M = np.array([input().split() for _ in range(N)],float)
A = np.linalg.det(M)
print(np.round(A,2))