首页 > ACM题库 > HDU-杭电 > hdu 2221 Weak Number Recognition待解决[解题报告]C++
2014
01-04

hdu 2221 Weak Number Recognition待解决[解题报告]C++

Weak Number Recognition

问题描述 :

Wiskey wants to develop an image retrieval system, but he can’t deal with the number recognition.

The number is neat which no any aliasing, no any redundant point, and made by ‘#’.
You can use the software “ASCII Art Studio”, the data come from there.

The font is Arial, and the font size between “五号” and “一号", the style is bold.
The data is weak, not all of the numbers which various sizes are need to be recognized.
Come on baby; please improve your program as much as possible.

输入:

First line will contain one integer mean how many cases will follow by.
In each case will contain two integers N, M mean the N*M matrix will follow. (10 <= N, M <= 26)

输出:

First line will contain one integer mean how many cases will follow by.
In each case will contain two integers N, M mean the N*M matrix will follow. (10 <= N, M <= 26)

样例输入:

2
10 7
  ###  
 ##### 
### ###
##   ##
##   ##
##   ##
##   ##
### ###
 ##### 
  ###  
14 9
  #####  
 ####### 
###   ###
###   ###
###   ###
 ### ### 
  #####  
  #####  
 ### ### 
###   ###
###   ###
###   ###
 ####### 
  #####  

样例输出:

0
8