
import random
import time

N = 100

######### timer function #################################
def print_timing(func):
	def wrapper(*arg):
		t1 = time.clock()
		res = func(*arg)
		t2 = time.clock()
		print '%s took %0.3fms' % (func.func_name, (t2-t1)*1000.0)
		return res
	return wrapper


########## your function(s) here ########################


#@print_timing
#def mult(a,b,result,n):
#       ...blah...blah
#	#assert: result[0..2*N] has the result of a*b



############# Main ################
a = []
b = []
result = []

#create random a and b
i = 0
while (i < N):
	a.append(random.randint(0,9))
	i = i+1
i = 0
while (i < N):
	b.append(random.randint(0,9))
	i = i+1

#create the result array and fill it with 0
i = 0
while (i < 2*N):
	result.append(0)
	i = i+1

print a
print b
mult(a,b,result,N)
print result
