12764

#include <iostream>
#include <string.h>
#include <string>
#include <stdio.h>

using namespace std;

string a[10];
string b[10];
string c[10];

int main()
{
	a[0]="\\ / ";
	b[0]=" |  ";
	c[0]="/o\\ ";

	a[1]=" o  ";
	b[1]="/|\\ ";
	c[1]="/ \\ ";

	a[2]="    ";
	b[2]="    ";
	c[2]="__\\o";

	a[3]="    ";
	b[3]="    ";
	c[3]="\\_\\o";

	a[4]="_o_ ";
	b[4]=" |  ";
	c[4]="/ \\ ";

	a[5]="\\o/ ";
	b[5]=" |  ";
	c[5]="/ \\ ";

	a[6]="\\o_ ";
	b[6]="\\|  ";
	c[6]=" |  ";

	a[7]="\\o/ ";
	b[7]="\\|/ ";
	c[7]="    ";

	a[8]="    ";
	b[8]=" __o";
	c[8]="/  |";

	a[9]=" o  ";
	b[9]="( ) ";
	c[9]="/ \\ ";
	//cout<<c[0]<<"a";


	int t,x,ct=0,org;

	string str;
	cin>>t;
	org=t;
	while(t--)
	{
		cin>>str;
		ct++;
		for(int i=0;i<3;i++)
		{
			for(int j=0;j<str.size();j++)
			{
				x = str[j]-'0';
				if(i==0)
				cout<<a[x];
				else if(i==1)
				cout<<b[x];
				else if(i==2)
				cout<<c[x];

				if(j!=(str.size()-1))
				cout<<" ";
				else
				cout<<"\n";
			}
			//cout<<"\n";
		}
		//if(ct<=org-1)
		cout<<"\n";
	}
	return 0;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *