Advertisement
T-D-K

Untitled

May 17th, 2018
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. m, n = map(int, input().split())
  2. a = []
  3. for i in range(m):
  4.     a.append(list(map(int, input().split())))
  5. s = 0
  6. for j in range(n):
  7.     for i in range(m):
  8.         if a[i][j] == 4:
  9.             s = s + 1
  10.             break
  11. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement