Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第三次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: F
Result: Accepted
Time: 114ms
Memory: 24300kB
Author: ajwuzhicheng
In contest: 1123

def jzcf(jz1,jz2):
	hang=len(jz1)
	lie=len(jz2[0])
	res=[]
	for i in range(hang):
		res.append([])
	for i in range(hang):
		for j in range(lie):
			s=0
			for k in range(len(jz1[0])):
				s+=jz1[i][k]*jz2[k][j]
			res[i].append(s)
	return res
(n,m,k)=map(int,input().split())
a=[]
b=[]
for i in range(n):
	a.append(list(map(int,input().split())))
for i in range(m):
	b.append(list(map(int,input().split())))
c=jzcf(a,b)
for i in range(n):
	for j in range(k):
		print(c[i][j],end=' ')
	print()