Skip to content

Instantly share code, notes, and snippets.

View c-wei's full-sized avatar
:octocat:

Caroline Wei c-wei

:octocat:
View GitHub Profile
#!/usr/bin/env python3
import numpy as np
def read_matrix(N):
matrix = []
for _ in range(N):
row = list(map(int, input().split()))
matrix.append(row)
return matrix