fork download
  1. import numpy as np
  2.  
  3.  
  4. a, b = input().split()
  5.  
  6. x = np.array(input().split())
  7. y = np.array(input().split())
  8.  
  9. print(np.add(x, y))
  10. print(np.subtract(x, y))
  11. print(np.multiply(x, y))
  12. print(np.divide(x, y))
  13. print(np.mod(x, y))
  14. print(np.power(x, y))
  15.  
Runtime error #stdin #stdout #stderr 0.09s 92224KB
stdin
1 4
1 2 3 4
5 6 7 8
stdout
Standard output is empty
stderr
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')