拱垲 @ 2023-10-04 18:33:48
#include <iostream>
#include <string>
using namespace std;
int n,num[105];
string no[10][5]={
"XXX","X.X","X.X","X.X","XXX",
"..X","..X","..X","..X","..X",
"XXX","..X","XXX","X..","XXX",
"XXX","..X","XXX","..X","XXX",
"X.X","X.X","XXX","..X","..X",
"XXX","X..","XXX","..X","XXX",
"XXX","X..","XXX","X.X","XXX",
"XXX","..X","..X","..X","..X",
"XXX","X.X","XXX","X.X","XXX",
"XXX","X.X","XXX","..X","XXX"
};
int main()
{
scanf("%d",&n);getchar();//while(getchar()==' ');
for(int i=1;i<=n;i++)num[i]=int(getchar()-'0');//while(getchar()==' ');
for(int i=0;i<5;i++)
{
for(int j=1;j<=n;j++)
{
cout<<no[num[j]][i];
if(j!=n)cout<<'.';
}
if(i!=4)cout<<endl;
}
return 0;
}
by 大眼仔Happy @ 2023-10-04 18:55:03
啊我甚至不能编译