You are viewing a single comment's thread. Return to all comments →
import numpy as np
arr = list(map(int, input().split()))
print(np.zeros(arr, dtype=int), np.ones(arr, dtype=int), sep="\n")
Seems like cookies are disabled on this browser, please enable them to open this website
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →
import numpy as np
arr = list(map(int, input().split()))
print(np.zeros(arr, dtype=int), np.ones(arr, dtype=int), sep="\n")