Create a 2D table to store results of subproblems one - liner logic to take input for rows and columns mat = [ [ int ( input ( ) ) for x in range ( C ) ] for y in range ( R ) ]
count = [ [ 0 for x in range ( n ) ] for y in range ( m ) ] NEW_LINE