You are viewing a single comment's thread. Return to all comments →
# Enter your code here. Read input from STDIN. Print output to STDOUT
import numpy as np n = int(input()) matrix = [list(map(float, input().split())) for _ in range(n)]
np_matrix = np.array(matrix)
det = np.linalg.det(np_matrix)
print(round(det,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 →
# Enter your code here. Read input from STDIN. Print output to STDOUT
import numpy as np n = int(input()) matrix = [list(map(float, input().split())) for _ in range(n)]
np_matrix = np.array(matrix)
det = np.linalg.det(np_matrix)
print(round(det,2))