import numpy as np a, b = input().split() x = np.array(input().split())y = np.array(input().split()) print(np.add(x, y))print(np.subtract(x, y))print(np.multiply(x, y))print(np.divide(x, y))print(np.mod(x, y))print(np.power(x, y))
1 4 1 2 3 4 5 6 7 8
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 9, in <module> TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('<U1') dtype('<U1') dtype('<U1')
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!