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: 125ms
Memory: 21432kB
Author: 15957554881
In contest: 1087

A = []
B = []
C = []
Crow=[]
rowA,columnA,columnB=map(int,raw_input().strip().split())
for i in range(rowA):
    A.append(map(int,raw_input().strip().split()))
for i in range(columnA):
    B.append(map(int,raw_input().strip().split()))

for i in range(rowA):
    for j in range(columnB):
        s=0
        for k in range(columnA):
            s+=A[i][k]*B[k][j]
        Crow.append(s)
    C.append(Crow)
    Crow=[]

for i in range(len(C)):
    for j in range(len(C[0])):
        print C[i][j],
    print