Submission
Status:
PPPPPPPPPP
Score: 100
User: Namkhing
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2025-04-10 23:18:33
#include <bits/stdc++.h>
using namespace std;
vector<string> a[7];
int main() {
cin.tie(nullptr)->ios_base::sync_with_stdio(false);
a[0] = {" ", " ", "___"};
a[1] = {" ", " * ", " "};
a[2] = {" * ", " ", " * "};
a[3] = {"* ", " * ", " *"};
a[4] = {"* *", " ", "* *"};
a[5] = {"* *", " * ", "* *"};
a[6] = {"* *", "* *", "* *"};
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
int x = s[j] - '0';
if (x > 6) x = 0;
cout << a[x][i] << " ";
}
cout << "\n";
}
}