```cpp
#include<iostream>
#include<string>
#include<cstring>
using namespace std;
int main()
{
int i,j,k,n,e,t;
int b[10][15]={0,2,0, 1,3,1, 0,3,0, 1,3,1, 0,2,0,
0,3,0, 0,3,1, 0,3,0, 0,3,1, 0,3,0,
0,2,0, 0,3,1, 0,2,0, 1,3,0, 0,2,0,
0,2,0, 0,3,1, 0,2,0, 0,3,1, 0,2,0,
0,3,0, 1,3,1, 0,2,0, 0,3,1, 0,3,0,
0,2,0, 1,3,0, 0,2,0, 0,3,1, 0,2,0,
0,2,0, 1,3,0, 0,2,0, 1,3,1, 0,2,0,
0,2,0, 0,3,1, 0,3,0, 0,3,1, 0,3,0,
0,2,0, 1,3,1, 0,2,0, 1,3,1, 0,2,0,
0,2,0, 1,3,1, 0,2,0, 0,3,1, 0,2,0,
};
string s;
cin>>n;
cin>>s;
t=s.size();
for(i=0;i<5;i++)
{
for(j=0;j<t;j++)
{
for(k=0;k<3;k++)
{
if(b[s[j]-'0'][i*3+k]==0)
{
cout<<" ";
}
else if(b[s[j]-'0'][i*3+k]==3)
{
cout<<" ";
}
else if(b[s[j]-'0'][i*3+k]==1)
{
cout<<"|";
}
else if(b[s[j]-'0'][i*3+k]==2)
{
cout<<"-";
}
}
cout<<" ";
}
cout<<endl;
}
return 0;
}
```
by tianyou_feng @ 2019-08-29 17:12:45
可以用一了 @[songyuan888](/space/show?uid=182229)
by tianyou_feng @ 2019-08-29 17:13:41
@[tianyou_feng](/space/show?uid=216743) 谢谢,but此题我已经做完了,但还是万分感谢,囧rz。
by songyuan888 @ 2019-10-02 12:53:14