Moota @ 2020-09-07 20:11:19
#include <iostream>
#include <set>
#include <algorithm>
#include <cstring>
using namespace std;
int main() {
int a[101][2];
memset(a, 0, sizeof a);
int N;
cin >> N;
//if (N == 0)
// return 0;
string str;
cin >> str;
for (int i = 1; i <= N; i++) {
a[i][0]=str[i-1]-'0';
a[i][1] = 1;
}
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= N; j++) {
switch (a[j][0]) {
case 0:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "X.X";
break;
case 3:
cout << "X.X";
break;
case 4:
cout << "X.X";
break;
case 5:
cout << "XXX";
break;
}
break;
case 1:
switch (a[j][1]) {
case 1:
cout << "..X";
break;
case 2:
cout << "..X";
break;
case 3:
cout << "..X";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "..X";
break;
}
break;
case 2:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "..X";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "X..";
break;
case 5:
cout << "XXX";
break;
}
break;
case 3:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "..X";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "XXX";
break;
}
break;
case 4:
switch (a[j][1]) {
case 1:
cout << "X.X";
break;
case 2:
cout << "X.X";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "..X";
break;
}
break;
case 5:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "X..";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "XXX";
break;
}
break;
case 6:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "X..";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "X.X";
break;
case 5:
cout << "XXX";
break;
}
break;
case 7:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "..X";
break;
case 3:
cout << "..X";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "..X";
break;
}
break;
case 8:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "X.X";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "X.X";
break;
case 5:
cout << "XXX";
break;
}
break;
case 9:
switch (a[j][1]) {
case 1:
cout << "XXX";
break;
case 2:
cout << "X.X";
break;
case 3:
cout << "XXX";
break;
case 4:
cout << "..X";
break;
case 5:
cout << "XXX";
break;
}
break;
}
a[j][1]++;
if (j!=N)cout << ".";
}
cout << "\n";
}
return 0;
}
by REAL_曼巴 @ 2020-09-07 20:12:50
@Moota 您ac拉丫
by andyli @ 2020-09-07 20:13:01
UKE 与你的程序无关
by Temperature_automata @ 2020-09-07 20:31:58
评测机炸了
by Moota @ 2020-09-08 10:32:10
@天启混沌之眼 噢噢,这样啊,加上N==0之后AC我就没管了。
by justinjia @ 2020-11-02 19:33:35
@天启混沌之眼 UKE一定是评测机炸了吗?
by Temperature_automata @ 2020-11-02 19:46:43
@justinjia 基本是
by justinjia @ 2020-11-02 19:50:32
@天启混沌之眼 难道
by justinjia @ 2020-11-02 19:51:34
@天启混沌之眼 也就是经常会发生“洛谷日爆”这种情况????????????
by Temperature_automata @ 2020-11-07 07:50:52
@justinjia 嗯