字符识别?

你的任务是写一个程序进行字符识别。别担心,你只需要识别1, 2, 3,如下:

 

.*.  ***  ***

.*.  ..*  ..*

.*.  ***  ***

.*.  *..  ..*

.*.  ***  ***

Input

输入仅包含一组数据,由6行组成。第一行为字符的个数n(1<=n<=10)。以下5行每行包含4n个字符。每个字符恰好占5行3列,然后是一个空列(用"."填充)。

Output

输出应包含一行,即识别出的各个字符。

Sample Input

3.*..***.***..*....*...*..*..***.***..*..*.....*..*..***.***.

Sample Output

123
 
  
 
  
标程:
#include
#include


char s[5][50];


int main()
{
    //freopen("a.txt","r",stdin);
    int n,i,j;
    while(scanf("%d",&n)!=EOF)
    {
        for(i=0;i<5;i++)  scanf("%s",s[i]);
            for(i=0;i 
 

你可能感兴趣的:(模拟)