Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Krovmoroz
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.003 second
Submitted On: 2025-11-04 18:54:00
#include <bits/stdc++.h>
using namespace std;
string n, p[7] =
{" ___",
" * ",
" * * ",
"* * *",
"* * * *",
"* * * * *",
"* ** ** *"};
int main() {
cin >> n;
for (int i=0; i<9; i++) {
int d = (n[i%3] - '0');
if (d>6) cout << ((i>5)?"___":" ");
else cout << p[d].substr(i/3*3,3);
if (i%3==2) cout << "\n";
}
}