Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def build_matrix():
- rows, cols = [int(x) for x in input().split()]
- matrix = []
- for _ in range(rows):
- matrix.append([x for x in input().split()])
- count = len(matrix[0])
- return print(count)
- build_matrix()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement