Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训第三次作业
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: F
Result: Accepted
Time: 48ms
Memory: 25320kB
Author: shanzhenyu
In contest: 1295

n,k,m = map(int,input().split())
a,b = [],[]
for i in range(n):
    a.append(list(map(int,input().split())))
for i in range(k):
    b.append(list(map(int,input().split())))
    
c = [[0 for j in range(m)] for i in range(n)]
for i in range(n):
    for j in range(m):
        for kk in range(k):
            c[i][j] += a[i][kk]*b[kk][j]
            
for cr in c:
    for cl in cr[:-1]:
        print(cl,end=" ")
    print(cr[-1])