jmpark0118 / CODING_TEST_PRACTICE

0 stars 0 forks source link

Practice>Python>Numpy>Inner and Outer #116

Open jmpark0118 opened 3 years ago

jmpark0118 commented 3 years ago

image image

출처 : https://www.hackerrank.com/challenges/np-inner-and-outer/problem

jmpark0118 commented 3 years ago

import numpy as np

arrA = np.array(tuple([input().split()]), int)
arrB = np.array(tuple([input().split()]), int)
print(int(np.inner(arrA, arrB)))
print(np.outer(arrA, arrB))