题解:
#include<bits/stdc++.h>
using namespace std;
int a[1000010];
int main(){
string s;
cin>>s;
for(int j=0;j<5;j++){
string str="";
for(int i=0;i<s.size();i++){
if(s[i]=='0'){
if(j!=4&&j!=0)str+=".***.";
else str+=".....";
}
else if(s[i]=='1'){
str+="****.";
}
else if(s[i]=='2'){
if(j==0||j==2||j==4)str+=".....";
else if(j==1)str+="****.";
else str+=".****";
}
else if(s[i]=='3'){
if(j==0||j==2||j==4)str+=".....";
else str+="****.";
}
}
cout<<str<<endl;
}
return 0;
}