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

# -*- coding: UTF-8 -*-


n = map(int,raw_input().strip().split())
a=[[0] * n[1] for row in range(n[0])]	
for i in range(n[0]):
	t = map(int,raw_input().strip().split())
	a[i]=t
b=[[0] * n[2] for row in range(n[1])]
for i in range(n[1]):
	t = map(int,raw_input().strip().split())
	b[i]=t
#大大
for i in range(n[0]):			
	new=""
	for j in range(n[2]):
		num=0
		for k in range(n[1]):
			num+=int(a[i][k])*int(b[k][j])			
		if new!="":
			new=new+" "+str(num)
		else:
			new=str(num)
	print new