Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Nuttykub
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-01 15:28:14
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string s;
cin >> s;
string face[8][3] = {
{},
{" "," * "," "},
{" * "," "," * "},
{"* "," * "," *"},
{"* *"," ","* *"},
{"* *"," * ","* *"},
{"* *","* *","* *"},
{" "," ","___"}
};
for (int i = 0;i < 3;i++){
for (int j =0;j<3;j++){
int n = s[j]-'0';
if (n > 6) n = 7;
cout << face[n][i] << " ";
}
cout << endl;
}
}