Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第三次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: F
Result: Accepted
Time: 145ms
Memory: 21428kB
Author: 13065754237
In contest: 1087

n,m,k=map(int,raw_input().strip().split())
a=[]
b=[]
for i in range(n):
    v = map(int,raw_input().strip().split())
    a.append(v)
for i in range(m):
    v = map(int,raw_input().strip().split())
    b.append(v)
c = [[0 for i in range(k)] for j in range(n)]
for i in range(n):
    for j in range(k):
        for h in range(m):
            c[i][j] += a[i][h]*b[h][j]
for i in range(n):
    for j in range(k):
        print c[i][j],
    print