Please help for this problem

Revision en1, by umsh1ume, 2016-10-17 18:22:43

Character recognition is the conversion of images into text. For now we consider each character in the picture is a N*M matrix with only zeros and ones, and we need to recognize K characters. You are to write a program to find minimal number of pixels so that we can recognize each character. The first line of input is three integers N, M, K (1 <= N, M <= 10, 2 <= K <= 6). Which represents the size of matrix and number of characters. Then is following K blocks, which represents the matrix. Notice that each block starts with a blank line. K is number of character matrices You should output the minimum number of pixels, which is the answer Input 2 3 2 111 010 100 100 output 1

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English umsh1ume 2016-10-17 18:22:43 726 Initial revision (published)