Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m, n = map(int, input().split())
- a = []
- for i in range(m):
- a.append(list(map(int, input().split())))
- s = 0
- for j in range(n):
- for i in range(m):
- if a[i][j] == 4:
- s = s + 1
- break
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement