Dot and Cross

  • + 0 comments

    import numpy n=int(input()) arr_a=[] for _ in range(n): arr_a.append(list(map(int,input().split()))) arr_b=[] for _ in range(n): arr_b.append(list(map(int,input().split())))

    print(numpy.dot(arr_a,arr_b))