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: 25196kB
Author: 13600513276
In contest: 1295

n,m,k=map(int,input().split())
a=[[0 for j in range(m)]for i in range(n) ]
for i in range(n):
    s=list(map(int,input().split()))
    for j in range(m):
        a[i][j]=s[j]
b=[[0 for j in range(k)]for i in range(m) ]
for i in range(m):
    t=list(map(int,input().split()))
    for j in range(k):
        b[i][j]=t[j]
c=[[0 for j in range(k)]for i in range(n) ]
for i in range(n):
    for j in range(k):
        for o in range(m):
            c[i][j]+=a[i][o]*b[o][j]
for u in c:
    for v in u[:-1]:
        print(v,end=" ")
    print(u[-1])