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

n,m,k=map(int,raw_input().strip().split())
myList1=[[0 for i in range(m)] for i in range(n)]
myList2=[[0 for i in range(k)] for i in range(m)]
myList3=[[0 for i in range(k)] for i in range(n)]
for i in range(n):
	myList1[i]=map(int,raw_input().strip().split())
for i in range(m):
	myList2[i]=map(int,raw_input().strip().split())
for i in range(n):
	for l in range(k):
		s=0
		for j in range(m):
			s=s+myList1[i][j]*myList2[j][l]
		myList3[i][l]=s
for i in range(n):
	t=''
	for j in range(k-1):
		t=t+str(myList3[i][j])+' '
	t=t+str(myList3[i][k-1])
	print t