Advertisement
T-D-K

Untitled

May 22nd, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. m,n = map(int, input().split())
  2. s = 1
  3. for i in range(m):
  4.     r = input().split()
  5.     for j in range(n):
  6.         c = int(r[j])
  7.         if c % 6 == 0:
  8.             s = s * c
  9. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement