You are viewing a single comment's thread. Return to all comments →
import numpy N = int(input().strip()) arr_A = numpy.array(([numpy.array(input().split()) for i in range(N)]), dtype='int').reshape(N, N) arr_B = numpy.array(([numpy.array(input().split()) for j in range(N)]), dtype='int').reshape(N, N) print(numpy.matmul(arr_A, arr_B))
Seems like cookies are disabled on this browser, please enable them to open this website
Dot and Cross
You are viewing a single comment's thread. Return to all comments →