Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.dot(B_ele)

for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))


Fixed submission:
# -*- coding: utf-8 -*-
A_ele = []
B_ele = []
C_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
for i in range(ele[0]):
    C_ele.append([])
    for j in range(ele[1]):
        for k in range(ele[2]):
            if j == 0:
                C_ele[i].append(0)
            C_ele[i][k] = C_ele[i][k] + A_ele[i][j] * B_ele[j][k]
for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.dot(B_ele)

for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))


Fixed submission:
# -*- coding: utf-8 -*-
A_ele = []
B_ele = []
C_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
for i in range(ele[0]):
    C_ele.append([])
    for j in range(ele[1]):
        for k in range(ele[2]):
            if j == 0:
                C_ele[i].append(0)
            C_ele[i][k] = C_ele[i][k] + A_ele[i][j] * B_ele[j][k]
for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))

Buggy python submission (verdict: Runtime Error):
import numpy as np
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
A_ele = np.array(A_ele)
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
B_ele = np.array(B_ele)
C_ele = A_ele.dot(B_ele)

for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))


Fixed submission:
# -*- coding: utf-8 -*-
A_ele = []
B_ele = []
C_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
for i in range(ele[0]):
    C_ele.append([])
    for j in range(ele[1]):
        for k in range(ele[2]):
            if j == 0:
                C_ele[i].append(0)
            C_ele[i][k] = C_ele[i][k] + A_ele[i][j] * B_ele[j][k]
for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import numpy
A_ele = []
B_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
A_ele = numpy.array(A_ele)
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
B_ele = numpy.array(B_ele)
C_ele = A_ele.dot(B_ele)

for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))


Fixed submission:
# -*- coding: utf-8 -*-
A_ele = []
B_ele = []
C_ele = []
ele = [int(x) for x in input().split()]
for i in range(ele[0]):
    A_ele.append([int(x) for x in input().split()])
for i in range(ele[1]):
    B_ele.append([int(x) for x in input().split()])
for i in range(ele[0]):
    C_ele.append([])
    for j in range(ele[1]):
        for k in range(ele[2]):
            if j == 0:
                C_ele[i].append(0)
            C_ele[i][k] = C_ele[i][k] + A_ele[i][j] * B_ele[j][k]
for i in range(ele[0]):
    print(' '.join(map(str,C_ele[i])))