Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: sakuragichan
Problemset: ลูกเต๋า
Language: cpp
Time: 0.002 second
Submitted On: 2026-09-05 22:24:59
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (j == 1) {
cout << "|";
if (i == 0) {
if (s[j] == '1' || s[j] == '2') {
cout << " ";
}
else if (s[j] == '3') {
cout << "*";
}
else {
cout << "**";
}
}
else if (i == 1) {
if (s[j] == '1' || s[j] == '3' || s[j] == '5') {
cout << "*";
}
else if (s[j] == '2' || s[j] == '6') {
cout << "**";
}
else {
cout << " ";
}
}
else {
if (s[j] == '1' || s[j] == '2') {
cout << " ";
}
else if (s[j] == '4' || s[j] == '5' || s[j] == '6') {
cout << "**";
}
else {
cout << "*";
}
}
cout << "|";
}
else {
if (i == 0) {
if (s[j] == '1' || s[j] == '2') {
cout << " ";
}
else if (s[j] == '3') {
cout << "*";
}
else {
cout << "**";
}
}
else if (i == 1) {
if (s[j] == '1' || s[j] == '3' || s[j] == '5') {
cout << "*";
}
else if (s[j] == '2' || s[j] == '6') {
cout << "**";
}
else {
cout << " ";
}
}
else {
if (s[j] == '1' || s[j] == '2') {
cout << " ";
}
else if (s[j] == '4' || s[j] == '5' || s[j] == '6') {
cout << "**";
}
else {
cout << "*";
}
}
}
}
cout << endl;
}
return 0;
}