You are viewing a single comment's thread. Return to all comments →
ip = input().split(' ') N,M = int(ip[0]),int(ip[1])
A = list(map(int,input().split(' '))) B = list(map(int,input().split(' ')))
a = numpy.array(A, int) b = numpy.array(B, int)
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))
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 →
ip = input().split(' ') N,M = int(ip[0]),int(ip[1])
A = list(map(int,input().split(' '))) B = list(map(int,input().split(' ')))
a = numpy.array(A, int) b = numpy.array(B, int)
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))