jmpark0118 / CODING_TEST_PRACTICE

0 stars 0 forks source link

Practice>Python>Numpy>Zeros ans Ones #108

Open jmpark0118 opened 3 years ago

jmpark0118 commented 3 years ago

image image image

출처 : https://www.hackerrank.com/challenges/np-zeros-and-ones/problem

jmpark0118 commented 3 years ago

import numpy as np

if __name__ == '__main__':
    a = list(map(int, input().split()))
    print(np.zeros(a, dtype=np.int))
    print(np.ones(a, dtype=np.int))