Skip to content

Instantly share code, notes, and snippets.

@stevedoyle
Created December 18, 2021 14:47
Show Gist options
  • Save stevedoyle/9b3fd47c20153ea5d86c34d88a48a401 to your computer and use it in GitHub Desktop.
Save stevedoyle/9b3fd47c20153ea5d86c34d88a48a401 to your computer and use it in GitHub Desktop.
# Read N lines of input, splitting each line and storing the result in a numpy array.
import numpy as np
a = np.array([input().split() for _ in range(N)], int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment