Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Krovmoroz
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2025-11-04 19:07:28
#include <bits/stdc++.h>
using namespace std;
string n, p[7] =
{" ___",
" * ",
" * * ",
"* * *",
"* * * *",
"* * * * *",
"* ** ** *"};
int main() {
ios::sync_with_stdio(false); cin.tie(nullptr);
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 && i < 6) cout << "\n";
}
}