You are viewing a single comment's thread. Return to all comments →
import numpy n, m = input().strip().split() # print(n,m) # a = numpy.array([list(map(int, input().strip().split()))]) # b = numpy.array([list(map(int, input().strip().split()))]) # # print(a,b,sep='\n') # print((numpy.add(a,b))) # print(numpy.subtract(a,b)) # print(numpy.multiply(a,b)) # print(numpy.floor_divide(a,b)) # print(numpy.mod(a,b)) # print(numpy.power(a,b)) lst = [] for i in range(2*(int(n))): lst.append(list(map(int, input().split()))) # print(lst) a = numpy.array(lst[:int(n)]) b = numpy.array(lst[-(int(n)):]) print(a+b , a-b, a*b, a//b , a%b, a**b, sep='\n')
Seems like cookies are disabled on this browser, please enable them to open this website
Array Mathematics
You are viewing a single comment's thread. Return to all comments →