Jokersheng @ 2024-08-06 23:25:54
Ctrl+C和Ctrl+V速通
#include <bits/stdc++.h>
using namespace std;
string s;
int n;
int main(){
cin>>n>>s;
for(int i=0;i<n;i++){
if(s[i]-'0'==0){
cout<<"XXX";
}else if(s[i]-'0'==1){
cout<<"..X";
}else if(s[i]-'0'==2){
cout<<"XXX";
}else if(s[i]-'0'==3){
cout<<"XXX";
}else if(s[i]-'0'==4){
cout<<"X.X";
}else if(s[i]-'0'==5){
cout<<"XXX";
}else if(s[i]-'0'==6){
cout<<"XXX";
}else if(s[i]-'0'==7){
cout<<"XXX";
}else if(s[i]-'0'==8){
cout<<"XXX";
}else{
cout<<"XXX";
}
if(i!=n-1)cout<<".";
}
cout<<endl;
for(int i=0;i<n;i++){
if(s[i]-'0'==0){
cout<<"X.X";
}else if(s[i]-'0'==1){
cout<<"..X";
}else if(s[i]-'0'==2){
cout<<"..X";
}else if(s[i]-'0'==3){
cout<<"..X";
}else if(s[i]-'0'==4){
cout<<"X.X";
}else if(s[i]-'0'==5){
cout<<"X..";
}else if(s[i]-'0'==6){
cout<<"X..";
}else if(s[i]-'0'==7){
cout<<"..X";
}else if(s[i]-'0'==8){
cout<<"X.X";
}else{
cout<<"X.X";
}
if(i!=n-1)cout<<".";
}
cout<<endl;
for(int i=0;i<n;i++){
if(s[i]-'0'==0){
cout<<"X.X";
}else if(s[i]-'0'==1){
cout<<"..X";
}else if(s[i]-'0'==2){
cout<<"XXX";
}else if(s[i]-'0'==3){
cout<<"XXX";
}else if(s[i]-'0'==4){
cout<<"XXX";
}else if(s[i]-'0'==5){
cout<<"XXX";
}else if(s[i]-'0'==6){
cout<<"XXX";
}else if(s[i]-'0'==7){
cout<<"..X";
}else if(s[i]-'0'==8){
cout<<"XXX";
}else{
cout<<"XXX";
}
if(i!=n-1)cout<<".";
}
cout<<endl;
for(int i=0;i<n;i++){
if(s[i]-'0'==0){
cout<<"X.X";
}else if(s[i]-'0'==1){
cout<<"..X";
}else if(s[i]-'0'==2){
cout<<"X..";
}else if(s[i]-'0'==3){
cout<<"..X";
}else if(s[i]-'0'==4){
cout<<"..X";
}else if(s[i]-'0'==5){
cout<<"..X";
}else if(s[i]-'0'==6){
cout<<"X.X";
}else if(s[i]-'0'==7){
cout<<"..X";
}else if(s[i]-'0'==8){
cout<<"X.X";
}else{
cout<<"..X";
}
if(i!=n-1)cout<<".";
}
cout<<endl;
for(int i=0;i<n;i++){
if(s[i]-'0'==0){
cout<<"XXX";
}else if(s[i]-'0'==1){
cout<<"..X";
}else if(s[i]-'0'==2){
cout<<"XXX";
}else if(s[i]-'0'==3){
cout<<"XXX";
}else if(s[i]-'0'==4){
cout<<"..X";
}else if(s[i]-'0'==5){
cout<<"XXX";
}else if(s[i]-'0'==6){
cout<<"XXX";
}else if(s[i]-'0'==7){
cout<<"..X";
}else if(s[i]-'0'==8){
cout<<"XXX";
}else{
cout<<"XXX";
}
if(i!=n-1)cout<<".";
}
return 0;
}
by Miyamizu_Mitsuha @ 2024-08-06 23:37:52
绿下众等秒了
by lovely_codecat @ 2024-08-07 07:21:13
橙可以,毕竟码量挺多的
by ATION001 @ 2024-09-02 19:11:58
降红对蒟蒻很不友好啊……