Олимпиадный тренинг

Задача 6028. Processing a column in a matrix - 2


Given a two-dimensional array A[N][M] ( 1<=N<=20; M 1<=M<=20).
In the first line, enter the number of rows separated by a space - (rows of the array are numbered from 0 to N-1), and the number of columns - (columns of the array are numbered from 0 to M-1)
Next comes the input of array elements line by line
Determine the number of two-digit numbers from the last column.

Examples
# Input Output
1 2 2
5 15
11 22
2
2 2 3
11 15 2
 3   4 10
1