学不会图论的原神玩家 @ 2023-03-02 22:51:45
#include<bits/stdc++.h>
using namespace std;
int n;
string k;
string n1[10]={"XXX","..X","XXX","XXX","X.X","XXX","XXX","XXX","XXX","xxx"};
string n2[10]={"X.X","..X","..X","..X","X.X","X..","X..","..X","X.X","x.x"};
string n3[10]={"X.X","..X","XXX","XXX","XxX","XXX","XXX","..X","XxX","xxx"};
string n4[10]={"X.X","..X","X..","..X","..X","..X","X.X","..X","X.X","..x"};
string n5[10]={"XXX","..X","XXX","XXX","..X","XXX","XXX","..X","XXX","xxx"};
int main()
{
cin>>n>>k;
for(int i=0;i<n;i++)
{
if(i-n<-1)
cout<<n1[k[i]-'0']<<".";
else
cout<<n1[k[i]-'0'];
}
cout<<endl;
for(int i=0;i<n;i++)
{
if(i-n<-1)
cout<<n2[k[i]-'0']<<".";
else
cout<<n2[k[i]-'0'];
}
cout<<endl;
for(int i=0;i<n;i++)
{
if(i-n<-1)
cout<<n3[k[i]-'0']<<".";
else
cout<<n3[k[i]-'0'];
}
cout<<endl;
for(int i=0;i<n;i++)
{
if(i-n<-1)
cout<<n4[k[i]-'0']<<".";
else
cout<<n4[k[i]-'0'];
}
cout<<endl;
for(int i=0;i<n;i++)
{
if(i-n<-1)
cout<<n5[k[i]-'0']<<".";
else
cout<<n5[k[i]-'0'];
}
return 0;
}
by Rosaya @ 2023-03-02 23:02:06
你这个怎么有的大写有的小写,水平很高啊。
by linyukun @ 2023-03-03 07:53:37
@wuhansen 数字里有小写
by Hughpig @ 2023-03-03 12:14:22
@linyukun 老哥你教教我哪里有,我把小写改成大写就过了。
by linyukun @ 2023-03-03 12:41:40
@Hughpig 我说的是你表的“
by linyukun @ 2023-03-03 12:42:35
你的回复时间咋是镜像的?
by Hughpig @ 2023-03-03 12:44:17
@linyukun exlg badge
by linyukun @ 2023-03-03 12:45:06
@Hughpig OK
by 学不会图论的原神玩家 @ 2023-03-04 16:20:42
@linyukun
谢谢大佬(我眼瞎)已AC
by zyx4145 @ 2023-03-28 18:10:05
你这个怎么有的大写有的小写,水平很高啊。