Dot and Cross

  • + 0 comments

    import numpy N = int(input()) array_A = numpy.array([input().strip().split()[:N] for _ in range(N)], dtype=numpy.int_) array_B = numpy.array([input().strip().split()[:N] for _ in range(N)], dtype=numpy.int_) print(numpy.dot(array_A,array_B))